Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging based on EAR

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our app is currently logging using Log4j at application level. There are at least 8 EAR files, which are deployed when the server runs. All 8 EAR's are logging into File1.log file. I want to separate 1 ear. For example, 7 EAR files should conitnue logging in File1.log file however, the 8th one say ABCD.EAR should log into ABCD.LOG file.

I am able to log things based on class heirarchi. But there are number of classes, who doesn't fall under specific hierarchy but still fall under ABCD.EAR. How can i configure my log4j.xml based on EAR. My current settings for ABCD loggins are



this currently logging all log information for the classes falls under project.abcd, but there are other classes which are in abcd.ear but not being logged.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic