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

Only error log can be logged in console when config sofa.middleware.log.console with implementation of log4j2 #45

Closed
QilongZhang opened this issue Mar 15, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@QilongZhang
Copy link
Collaborator

I seems a bug that only error log can be logged in console when config sofa.middleware.log.console with implementation of log4j2

@QilongZhang QilongZhang added the bug Something isn't working label Mar 15, 2019
@QilongZhang
Copy link
Collaborator Author

As in log4j2, default level of root log is set as ERROR, we can reset this property via org.apache.logging.log4j.level=INFO to fix this problem.

To keep unified style with logback, we would set the default level of root log as INFO,and it also can be changed via org.apache.logging.log4j.level.

Notice: only support system properties to config org.apache.logging.log4j.level

QilongZhang added a commit to QilongZhang/sofa-common-tools that referenced this issue May 11, 2019
@QilongZhang QilongZhang mentioned this issue May 11, 2019
@QilongZhang QilongZhang added this to the 1.0.19 milestone May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant