This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


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: 17243
    
    1

"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: 17243
    
    1

"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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to create different logs for different applications using LOG4J
 
Similar Threads
Cannot get log4j and hibernate to log from EJB in 10.3
Merging of log files
Log4J - File appender in 2 or more files for the same package.
jboss-log4j: seperate logs for different applications
create two log files using log4j.xml