Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

Re : Log4J - File appender in 2 or more files for the same package.

 
Dhana Sen
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi jai,

i have tried in this way also but it's not working..

log4j.logger.com.ls.es.service=DEBUG, file1, file2

thanks
by
dhana
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
When you say its not working, do you mean that the file is not created or is it that the logs are not getting to the file. If its the latter, then to which file(s) are the logs NOT getting written? Is it the one with the logger level set to DEBUG?
 
Dhana Sen
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi jai,
sorry, for not giving full message.. file is not creating..
yes , as you told that for the same package.. Log level Error will override the DEBUG level..

if you find any solution .. help me ..

but if i give DEBUG alone 2 files are creating.. and also writing to the both the file..
log4j.logger.com.ls.es.service=DEBUG, file1, file2

but i need i this way
log4j.logger.com.ls.es.service=DEBUG, file1, file2
log4j.logger.com.ls.es.service=ERROR, file3
if it's possible .. help me.. i have tried .. but ERROR IS override the DEBUG LEVE..

by
dhana
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
The original thread was moved to the Other Open Source APIs because it is not a Tomcat specific topic.

Please continue the conversation there.

http://www.coderanch.com/forums/f-64/open-source
[ August 29, 2006: Message edited by: Ben Souther ]
 
    Bookmark Topic Watch Topic
  • New Topic