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

RATIS-2200. Make Ratis example log at INFO level #1189

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ratis-examples/src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@


log4j.rootLogger=INFO, stdout
log4j.logger.org.apache.ratis.server.impl.RatisServerImpl=DEBUG
log4j.logger.org.apache.ratis.client.RaftClient=DEBUG
log4j.logger.org.apache.ratis.server.impl.RatisServerImpl=INFO
log4j.logger.org.apache.ratis.client.RaftClient=INFO
Comment on lines +19 to +20
Copy link
Contributor

Choose a reason for hiding this comment

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

Since root level is INFO, I think these two class-specific settings can be removed.

Suggested change
log4j.logger.org.apache.ratis.server.impl.RatisServerImpl=INFO
log4j.logger.org.apache.ratis.client.RaftClient=INFO


log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
Loading