This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j2.xml logs not getting printed. " Watch "Log4j2.xml logs not getting printed. " New topic
Author

Log4j2.xml logs not getting printed.

Siddharth Bhargava
Ranch Hand

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

my log4j2.xml is configured something like:

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

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

</loggers>

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,
Sid
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4j2.xml logs not getting printed.
 
Similar Threads
log4j not logging
log4j: stop logging
wierd logging issue with my app
log4j - creating my own file
Where are my log4j logs getting written to?