Skip to content

Add a logging "drawer" #62

@clcollins

Description

@clcollins

Taking into consideration #61, logging should write to an io.Multiwriter, with one stream ended up in the journal, and a second accessible from within the app.

The app-accessible stream should be viewable with a "drawer", or window or pane that becomes viewable in SREPD's table view via a key command, preferably TAB, to tab through different views/layouts, allowing for the possibility of other views someday.

This second pane should probably split the screen horizontally, to allow for easily reading long log lines.

Done Criteria:

  • SREPD default view remains unchanged
  • Pressing tab splits the table view pane horizontally, and loads a stream of the log messages in the bottom pane
  • Tabbing cycles back and forth between normal and log view, but could easily be extended to add another (or more) views
  • Incident view, etc, remains unchanged
  • Log messages are viewable and scroll though the bottom pane
  • Log messages also go to the standard log output (with allowances made for the inclusion of Log to the system logger #61, if that hasn't happened already)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions