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(user): add a logs command in CLI #126

Merged
merged 4 commits into from
Oct 15, 2024
Merged

feat(user): add a logs command in CLI #126

merged 4 commits into from
Oct 15, 2024

Conversation

qjerome
Copy link
Member

@qjerome qjerome commented Oct 15, 2024

Kunai stores last logs in plain text but compresses old archives. It can be a burden to read the logs in the proper order for inspection. So this PR adds a new command in the CLI to read the logs and print them out (in good order) in the terminal.

Example

Easy way to show Kunai logs. This will work only with a configuration file and with an output file being configured

Usage: kunai logs [OPTIONS]

Options:
  -c, --config <CONFIG>      Path to the configuration file [default: /etc/kunai/config.yaml]
  -l, --log-file <LOG_FILE>  Path to the log file to open. The path must point to the plain-text log file, not to one of the archives
  -h, --help                 Print help

@qjerome qjerome changed the title feat(user): add a log command in CLI feat(user): add a logs command in CLI Oct 15, 2024
@qjerome qjerome merged commit c69d04e into main Oct 15, 2024
2 checks passed
@qjerome qjerome deleted the feat-log-cli branch October 15, 2024 11:54
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.

1 participant