my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes How to create different logs for different applications using LOG4J Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic
Author

How to create different logs for different applications using LOG4J

Ravi
Greenhorn

Joined: Jan 16, 2007
Posts: 3
How to create different logs for different applications

I had two applications(war files) and I have to create different logs for them. I tried using log4j.properties file pointing to different log files and made the changes to the jboss-service.xml and jboss-web.xml to point to my log4j .properties in the class path.

But this is not working if had two deployed wars
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"saurav thebest"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"Ravi"

This still does not meet the JavaRanch policy

You must use your first and last names. Not just a first name.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create different logs for different applications using LOG4J
 
Similar Threads
Merging of log files
create two log files using log4j.xml
Log4J - File appender in 2 or more files for the same package.
jboss-log4j: seperate logs for different applications
Cannot get log4j and hibernate to log from EJB in 10.3