aspose file tools
The moose likes JBoss/WildFly and the fly likes create two log files using log4j.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "create two log files using log4j.xml" Watch "create two log files using log4j.xml" New topic

create two log files using log4j.xml

anji anji

Joined: Nov 12, 2006
Posts: 2
I have two java applications running in single JBOSS server.I want to create two different log files for two applications.
How to mention properties in log4j.xml to create different log files.

any body help in this..
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17260

in the log4j.xml file in the conf directory you can create another Appender mapped to a particular app, and have that go to one file, and create another pointing to another file for the other app. At this point it is a question of how this is done for Log4j, than a specific JBoss question.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
It is sorta covered in the JavaRanch Style Guide.
subject: create two log files using log4j.xml