Re: log4j creates several log files

2010-10-29 Thread fachhoch
attached is my log4j confiration file. http://old.nabble.com/file/p30087864/log4j.xml log4j.xml fachhoch wrote: > > here is my log4j configration > > > class="org.apache.log4j.DailyRollingFileAppender"> > > > > > > > > >

log4j creates several log files 1

2010-10-29 Thread fachhoch
here is my log4j configration [code] [/code] I am assuming this configration will createone log file daily with a max size of 5Mb and if the log size exceeds it will create another new one. but in server I

log4j creates several log files

2010-10-29 Thread fachhoch
here is my log4j configration I am assuming this configration will createone log file daily with a max size of 5Mb and if the log size exceeds it will create another new one. but in server I noticed sev

Re: Extending Logger

2010-10-29 Thread Mohan.Radhakrishnan
I have wrapped log4j's Logger in a 'custom' logger. The custom logger is my logger. The FQCN of my logger is set in the 'logger' element in the XML. I have an extra parameter to set in my logger that is not in Log4j's logger. So I think that I have to configure this when log4j calls void selec

Re: Extending Logger

2010-10-29 Thread Douglas E Wegscheid
I guess I don't understand the question: what are you wanting to do? programmatically set properties on a custom logger, or do it in xml? "custom" logger is a funny term: the configuration code handles distributed and customer-written loggers identically... Douglas E Wegscheid Lead Technical A

Re: Extending Logger

2010-10-29 Thread Mohan.Radhakrishnan
Since extension of Logger is discouraged I wrap it. I think the configuration can be set like this. Thanks, Mohan -- View this message in context: http://old.nabble.com/Extending-Logger-tp30018462p30085722.html Sent from the Log4j - Users mailing list archive at Nabble.com. -

Re: Extending Logger

2010-10-29 Thread Douglas E Wegscheid
can't you just cast the Logger to CustomLogger? if (logger instanceof CustomLogger) { CustomLogger c = (CustomLogger) logger; c.customLoggersMethod(); } Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong n

Re: Extending Logger

2010-10-29 Thread Mohan.Radhakrishnan
Solved this. Is there a way to get my custom logger that log4J has configured and set some values using reflection ? The API does not seem to return the correct type. It returns Logger always and not CustomLogger. -- View this message in context: http://old.nabble.com/Extending-Logger-tp300184