Skip to content

'admin log' add log level print and support filter by log level#5229

Closed
dormanze wants to merge 3 commits into
minio:masterfrom
dormanze:admin-log
Closed

'admin log' add log level print and support filter by log level#5229
dormanze wants to merge 3 commits into
minio:masterfrom
dormanze:admin-log

Conversation

@dormanze

Copy link
Copy Markdown
Contributor

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.

Description

'admin log' print many event log such as:
image
This has been quite troubling for me when focusing on the error logs.

Motivation and Context

Support for print log levels.
Support for filter message by log level.

How to test this PR?

before:
image
after:
mc admin logs local --level error
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

@klauspost

Copy link
Copy Markdown
Contributor

We don't really use "log levels", so not really too sure abou this.

@dormanze

Copy link
Copy Markdown
Contributor Author

We don't really use "log levels", so not really too sure abou this.

ok,I will close

@dormanze dormanze closed this Jul 25, 2025
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.

2 participants