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 BEA/Weblogic and the fly likes Logging based on EAR 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 » BEA/Weblogic
Bookmark "Logging based on EAR" Watch "Logging based on EAR" New topic
Author

Logging based on EAR

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
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.


The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
 
jQuery in Action, 2nd edition
 
subject: Logging based on EAR
 
Similar Threads
invalid console appender .....
wierd logging issue with my app
log4j - creating my own file
Getting log4j to write to multiple log files
Log4j Issue