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

log_shell: Add log related shell functionality #3294

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Aug 5, 2024

Shell command log now has additional parameter -t that allows to measure time for log traversal

compat> log -t
826231 Log reboot_log 30366 entries walked in 2664 ms
826232 Log log 0 entries walked in 0 ms

Option -n allows to limit number of displayed logs

log -n 10

log-fill command allows to add some logs to test logging

log-fill 1000 reboot_log

@github-actions github-actions bot added the size/m label Aug 5, 2024
@kasjer kasjer changed the title sys/log: Add timing option to log command log_shell: Add log related shell functionality Aug 5, 2024
Shell command log now has additional parameter -t
that allows to measure time for log traversal

Signed-off-by: Jerzy Kasenberg <[email protected]>
This adds log-fill command to the log cli.
It allows to fill specific log with auto generated logs.
usage:

log-fill <count> [<log name>]

i.e.:

log-fill 1000 reboot_log

Command is added when syscfg value LOG_CLI_FILL_CMD is set

Signed-off-by: Jerzy Kasenberg <[email protected]>
This adds -n option that can be used to specify number of
logs to print with log command.

Usage:
log -n <number>

i.e.:
log -n 10

will print at most 10 entries from each log

Signed-off-by: Jerzy Kasenberg <[email protected]>
@kasjer kasjer marked this pull request as ready for review August 7, 2024 09:53
@kasjer kasjer merged commit 23b6eeb into apache:master Sep 6, 2024
18 checks passed
@kasjer kasjer deleted the kasjer/log-commands branch September 6, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants