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

Optimize shell log print #4037

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Optimize shell log print #4037

merged 1 commit into from
Jan 8, 2024

Conversation

AnonHxy
Copy link
Contributor

@AnonHxy AnonHxy commented Jul 24, 2023

Descriptions of the changes in this PR:

Motivation

Optimize shell log print.

When we execute the bookkeeper shell , e.g., bin/bookkeeper shell listbookies -a, it will print a lot of redundant logs. And the key infomation is hard to find:
image

Changes

Changing the log4j2.shell.xml to only print the key infomation, other logs will be printed to the bookkeeper-shell.log file

After changing:
image

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Jul 24, 2023

Copy link
Member

@StevenLuMT StevenLuMT left a comment

Choose a reason for hiding this comment

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

LGTM

@hangc0276 hangc0276 merged commit f2e85f7 into apache:master Jan 8, 2024
16 checks passed
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Descriptions of the changes in this PR:



### Motivation

Optimize shell log print.


When we execute the bookkeeper shell , e.g., `bin/bookkeeper shell listbookies -a`, it will print a lot of redundant logs. And the key infomation is hard to find:
<img width="1146" alt="image" src="https://github.com/apache/bookkeeper/assets/10233437/fe97c299-900b-4f71-babf-444000f60432">



### Changes

Changing the `log4j2.shell.xml` to only print the key infomation, other logs will be printed to the `bookkeeper-shell.log` file

After changing:
<img width="764" alt="image" src="https://github.com/apache/bookkeeper/assets/10233437/62f0acc9-15dd-4745-b43b-72cba97ccd8c">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants