File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Log4j2.xml logs not getting printed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j2.xml logs not getting printed. " Watch "Log4j2.xml logs not getting printed. " New topic

Log4j2.xml logs not getting printed.

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 268
Hi Friends,

my log4j2.xml is configured something like:

<logger name="xyz" level="info">
<appender-ref ref="filename"/>

<root level="info">
<appender-ref ref="console"/>
<appender-ref ref="file"/>


Somehow only INFO level logs are getting printed on the console and file. My other level logs are not getting printed.

How could I get other level logs such as trace, warn, error, debug printed.

Please kindly help

Thanks and Regards,
I agree. Here's the link:
subject: Log4j2.xml logs not getting printed.
It's not a secret anymore!