Log4j Multiple log files, shared classes

2012-02-10 Thread zrbite1
on which web service (test1 or test2) actually called it? -- View this message in context: http://old.nabble.com/Log4j-Multiple-log-files%2C-shared-classes-tp33303917p33303917.html Sent from the Log4j - Users mailing list archive at Nabble.com

Re: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-18 Thread Jacob Kjome
an be done using the XML itself ? I think this new appender is required due to the limitation in associating an individual logger with its own file. Thanks, Mohan -- View this message in context: http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names-and-the-same-appender-tp28024737

Re: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-18 Thread Mohan.Radhakrishnan
Jacob, What you are suggesting can be done using the XML itself ? I think this new appender is required due to the limitation in associating an individual logger with its own file. Thanks, Mohan -- View this message in context: http://old.nabble.com/Multiple-log-files%2C-multiple-logger

Re: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-15 Thread Jacob Kjome
If you have a limited set of loggers you are concerned with, just create a separate appender for each file you want created. So, if you have 5 loggers you care about, just create 5 appenders; each with its own file. Then associate the appropriate appender with the appropriate logger. In that ca

Re: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-15 Thread Mohan.Radhakrishnan
: http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names-and-the-same-appender-tp28024737p29971726.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr

Re: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-14 Thread Mohan.Radhakrishnan
Ok. Will try. I think you mean that in order to associate a file name with each logger in the hierarchy instead of the appender I need to write a custom appender. Am I on the right track then ? -- View this message in context: http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names

Re: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-14 Thread Jacob Kjome
I think for what you want (separate file/logger), you'll need to write a custom appender unless Bender Heri's suggestion suffices for you. Jake On 10/14/2010 3:30 AM, Mohan.Radhakrishnan wrote: > > Hope to revive this thread. Is there any way to use the feature I have > described. > > 1. Use th

RE: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-10-14 Thread Mohan.Radhakrishnan
Hope to revive this thread. Is there any way to use the feature I have described. 1. Use the logger hierarchy like Heri had suggested. 2. Use a separate logger file for each logger in the hierarchy. Thanks, Mohan -- View this message in context: http://old.nabble.com/Multiple-log-files%2C

RE: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-04-14 Thread Mohan.Radhakrishnan
This does not seem to be possible unless I use code ? I understand the logger hierarchy. -- View this message in context: http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names-and-the-same-appender-tp28024737p28251807.html Sent from the Log4j - Users mailing list archive at

RE: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-04-08 Thread Mohan.Radhakrishnan
Thanks. The log files are also different for each logger but the log file configuration is inside the appender configuration ! -- View this message in context: http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names-and-the-same-appender-tp28024737p28179638.html Sent from the

RE: [SCL-2] Re: Multiple log files, multiple logger names and the same appender

2010-04-08 Thread Bender Heri
: Mohan.Radhakrishnan [mailto:moh...@fss.co.in] Sent: Thursday, April 08, 2010 9:55 AM To: log4j-user@logging.apache.org Subject: [SCL-2] Re: Multiple log files, multiple logger names and the same appender Hopefully more explanation can attract some ideas here. I am using XML configuration and a

Re: Multiple log files, multiple logger names and the same appender

2010-04-08 Thread Mohan.Radhakrishnan
in log4j.xml Is there a way to parameterize the logger section and the log file so that one section can substitute for multiple sections ? The same appender is used for all sections. -- View this message in context: http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names-and-the-same

Multiple log files, multiple logger names and the same appender

2010-03-25 Thread Mohan.Radhakrishnan
Hi, I have been able to channelize the log information by writing a custom appender and specifying the logger name as 'Test1' into a separate log file. How can I use multiple log files, multiple logger names and the same appender ? In short I would like to

Re: one project multiple log files

2009-11-20 Thread Matt Brown
What does your log4j.xml/properties look like? What you want is easily achievable, you just need to set it up correctly. log4j.rootLogger = ERROR log4j.logger.com.one = DEBUG, ONE log4j.logger.com.two = DEBUG, two log4j.appender.ONE = ... log4j.appender.TWO = ... etc. On Fri, Nov 20, 2009 at

one project multiple log files

2009-11-19 Thread d1ve blu3
hi,, i'm new to this group. I've manage to generate 2 log files. but it seems both content are same,, what i want to know is it possible to generate two log files with different content? example: I had a java project. it have 2 packager. "com.one" and "com.two". What i want now is to log every c

Re: Configure multiple log files in single EAR

2008-06-03 Thread Maarten Bosteels
It's easy IF you can make sure that the names of the loggers in the jar don't collide with the names of the loggers in the war. Suppose all loggers in the jar start with "com.example.jar." and all loggers in the war start with "com.example.jar." then you just have to configure two different file-a

Re: Configure multiple log files in single EAR

2008-06-02 Thread Jacob Kjome
The only way I can think of that you would have separate logger repositories in an EAR is if you configure the webapp classloader to be parent-last (e.g. child-first). I don't think using a JNDI-based repository selector would distinguish between the webapp and the jar in the EAR file. They'd bo

Configure multiple log files in single EAR

2008-06-02 Thread lfbarragan
file defined on the second configuration file. What should I do to get separate log files for the JAR and the WAR? Thanks in advance. -- View this message in context: http://www.nabble.com/Configure-multiple-log-files-in-single-EAR-tp17596842p17596842.html Sent from the Log4j - Users mailing

Re: Multiple log files.

2005-03-23 Thread Luke Reeves
Thanks Jake, that worked like a charm! Luke On Wed, Mar 23, 2005 at 10:33:04AM -0600, Jacob Kjome wrote: > > I'm surprised that config file works at all. You are attempting to apply > additivity to your appender. Additivity applies to loggers, not appenders. > So, make sure to get rid

Re: Multiple log files.

2005-03-23 Thread Jacob Kjome
I'm surprised that config file works at all. You are attempting to apply additivity to your appender. Additivity applies to loggers, not appenders. So, make sure to get rid of the line "log4j.additivity.mail=false". The rest looks ok. I wonder if the line I just mentioned throws the config ou

Re: Multiple log files.

2005-03-23 Thread Luke Reeves
Sure thing: log4j.rootLogger=INFO, A1, A2 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %-5p [%-17c{2}] %3x - %m%n log4j.appender.A2=org.apache.log4j.FileAppender log4j.appender.A2.File=d:\\

Re: Multiple log files.

2005-03-22 Thread Jacob Kjome
Post your config file. Jake Quoting Luke Reeves <[EMAIL PROTECTED]>: > I tried that; that makes all log messages (not just mail-related ones) > appear in both files... > > Luke > > Aswin Asokan wrote: > > Try changing > > log4j.logger.MailLog=mail > > to > > log4j.logger.MailLog=DEBUG,mail

Re: Multiple log files.

2005-03-22 Thread Luke Reeves
I tried that; that makes all log messages (not just mail-related ones) appear in both files... Luke Aswin Asokan wrote: > Try changing > log4j.logger.MailLog=mail > to > log4j.logger.MailLog=DEBUG,mail > > > Regards, > Aswin Asokan signature.asc Description: Digital signature

Re: Multiple log files.

2005-03-16 Thread Aswin Asokan
Try changing log4j.logger.MailLog=mail to log4j.logger.MailLog=DEBUG,mail Regards, Aswin Asokan On Wed, 16 Mar 2005 09:54:04 -0500, Luke Reeves <[EMAIL PROTECTED]> wrote: > I'm trying to log different areas of my software to different log files > - this seems to be a common problem on the li

Multiple log files.

2005-03-16 Thread Luke Reeves
I'm trying to log different areas of my software to different log files - this seems to be a common problem on the list, but none of the previous solutions have worked for me. I'm using the most recently released Log4J library, and most of the code in my project uses the line: Logger log = Logg

[chainsaw v2] receiving multiple log files

2005-02-07 Thread Rohnny Moland
Hello, I am playing with chainsaw v2 and receivers, and wonder if it is possible to receive multiple log files, without defining one for each of them. E.g I would like to receive all log files in a directory, but I dont know the exact name of these log files. Preferable a remote directory