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

2010-10-18 Thread Jacob Kjome
Depends how many "individual loggers" you are concerned with.  If there are, say, 3 named loggers, then just create 3 appenders; one for each logger.  However, if the number of logger names cannot be known at build time, then you will probably need a custom appender that you assign to some b

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-name

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
My initial idea is to pass multiple file names in the XML in the appender section and maintain a list in the custome appender Java code and then based on the logger name or some other parameter pick the correct file name. Performance is one of our major concerns. -- View this message in context:

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-a

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-mult

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 Nabble.co

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 Log

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

2010-04-08 Thread Bender Heri
If I understand you correctly, you want to have several loggers all using the same appender? Use the hierarchical approach of the logger repository by prefixing your logger names: