简体   繁体   中英

I'cant change the log level for log4j2 implementation to websphere log level at runtime from “Logs and trace” option

I use log4j2 to implement loggin for applications than run over websphere application server 9. I need the log level change at runtime, i do this from Administrative Console, on "Logs and trace" option. But, the change has not effect. It's possible make this over Websphere with log4j2 implementation ?

It's not possible to change Log4j log levels through Websphere's Administrative Console. The WebSphere Administrative Console can only change log levels for WebSphere's internal Logger objects and java.util.logging.Loggers in your application.

You should instead locate your log4j configuration file and configure the log levels from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM