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

feat: add logging options #54

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Conversation

pekasen
Copy link
Member

@pekasen pekasen commented Jun 14, 2023

This adds the following command line options to tegracli:

  -v, --verbose            Logging verbosity.
  -l, --log-file FILENAME  File to log to. Defaults to STDOUT.
  -s, --serialize          Serialize output to JSON.

This allows to extensively set the logging configuration and supports setting the log level, destination (defaulting to STDOUT) and plain text or JSON output.

Closes #53.

@pekasen pekasen self-assigned this Jun 14, 2023
@pekasen pekasen linked an issue Jun 14, 2023 that may be closed by this pull request
Copy link
Member

@FlxVctr FlxVctr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could leave debug/no-debug as a simple on/off switch that defaults to 'ERROR' level. If that's the breaking change you meant in chat.

@pekasen pekasen merged commit 15d2687 into trunk Jun 15, 2023
@pekasen pekasen deleted the 53-feat-allow-configurable-logging branch June 15, 2023 14:00
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 this pull request may close these issues.

feat: allow configurable logging
2 participants