aspose file tools*
The moose likes Tomcat and the fly likes Re : Log4J - File appender in 2 or more files for the same package. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic
Author

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

Dhana Sen
Ranch Hand

Joined: Mar 05, 2006
Posts: 33
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

Joined: Jul 20, 2005
Posts: 10289
    
168

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?


[My Blog] [JavaRanch Journal]
Dhana Sen
Ranch Hand

Joined: Mar 05, 2006
Posts: 33
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

Joined: Dec 11, 2004
Posts: 13410

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 ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Re : Log4J - File appender in 2 or more files for the same package.