Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogViewer #1

Open
tenbits opened this issue Apr 25, 2020 · 0 comments
Open

LogViewer #1

tenbits opened this issue Apr 25, 2020 · 0 comments
Labels

Comments

@tenbits
Copy link
Collaborator

tenbits commented Apr 25, 2020

Consumes Monit Core to retrieve, parse and show application logs in browser.

Endpoints:

  1. List available channels
  2. Get available days (on which messages are present)
  3. Fetch messages by a DAY from files and buffered memory, supports pagination, sorts, filters)

File Formates

  1. Files are stored in {log_directory}/{channel_name}/*.csv
  2. Filename format: LoggerFile.ts#L151 there could be multiple files per day
  3. File content: CSV format, columns are defined by a channel. Built-in channels, most relevant requests Monit.ts#L49

Viewer

  1. Lists channels
  2. Lists available days
    3 DataTable using column specs for each channel:
  • Loads messages paginated
  • when a column is sortable, table should support sorting (asc/desc) on this column.
  • when a column is filterable, a search input should filter out not matched messages by any of filterable columns.
  • when a column is summable, a cell at the bottom (footer) should show a sum.
  • when a cell contains text with charCount > N(~30), the output should be trimmed and the cell should be clickable to show the content in a modal. After deserialization of the CSV value, it can be shown in <code><pre></pre></code> container
  1. As for now, the files per day can be loaded in memory at once
  2. Material Design is chosen as CSS Layout, maybe something else?
@tenbits tenbits added the ToDo label Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant