• Post Reply Bookmark Topic Watch Topic
  • New Topic

Log4j: config file VS code setLevel  RSS feed

 
Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Have a .jar file and there is a class (with private constructor -not able to inherit) in it, where log4j is configured from code:
Not able to modify that .jar
Is there any chance to inherit (somehow) that class and to replicate method that contains log.setLevel(Level.ERROR) or to do sg else with that .jar so it will make possible to configure Log4j from log4j.xml?

How to override Log4j configuration in code with log4j.xml?


Regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!