This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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!