Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

create two log files using log4j.xml  RSS feed

 
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: 17309
11
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!