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

Add "Station mode" log output #1767

Closed
3 tasks
Tracked by #2191
simonwo opened this issue Jan 25, 2023 · 0 comments · Fixed by #1956
Closed
3 tasks
Tracked by #2191

Add "Station mode" log output #1767

simonwo opened this issue Jan 25, 2023 · 0 comments · Fixed by #1956
Assignees

Comments

@simonwo
Copy link
Contributor

simonwo commented Jan 25, 2023

Station requires our logging to be in a specific output format.

A module communicates activity by writing to its stdout stream:

API: $1 The module has launched and $1 can be queried for fetching module stats (see below)
INFO: $1 $1 will be displayed to the user inside Station's Activity Log
ERROR: $1 $1 will be displayed to the user inside Station's Activity Log, with a warning icon
$1 all log lines will be stored in a module-specific log file, which can be submitted to Sentry for error handling

So the tasks are:

  • In "Station mode", ensure log messages are printed to Stdout (and not Stderr)
  • In "Station mode", ensure the log level (INFO, ERROR, DEBUG) is printed in all caps and full words at the start of the line
  • In "Station mode", ensure the Station API endpoint (which may be the same as our normal Metrics endpoint) is printed to stdout as above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants