Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j2.xml logs not getting printed.

 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic