Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create two log files using log4j.xml

 
anji anji
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic