Re: Logger name in the log entry
c: Used to output the category of the logging event. C: Used to output the fully qualified class name of the caller issuing the logging request. On 4/20/07, Cheung, Quinn <[EMAIL PROTECTED]> wrote: Using the PatternLayout and ConversionPattern, is there any way to automatically print out the name of the logger that was used to log a message? I know I can get the name of the class which will coincide with the logger name if I do: Logger theLogger = getLogger( TheClassName.class ); But I'm not doing that, I'm doing: Logger theLogger = getLogger( "HardCodedString" ); and I want "HardCodedString" to appear each time theLogger logs a message. Thanks! Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Staufferhttp://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logger name in the log entry
Using the PatternLayout and ConversionPattern, is there any way to automatically print out the name of the logger that was used to log a message? I know I can get the name of the class which will coincide with the logger name if I do: Logger theLogger = getLogger( TheClassName.class ); But I'm not doing that, I'm doing: Logger theLogger = getLogger( "HardCodedString" ); and I want "HardCodedString" to appear each time theLogger logs a message. Thanks! Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Time stamp in file name
My DateFormatFileAppender always includes the data pattern in the filename. http://stauffer.james.googlepages.com/DateFormatFileAppender.java On 4/20/07, Hjelmstad <[EMAIL PROTECTED]> wrote: Is there a way that I can add a timestamp to the file name that is not just a rolling appender? I may start up and stop my software 10 or more times during the course of a day and between those I have to remane the log file created manually. Does any one know of a way to automatically add a timestamp to the file name at the start of the software initialization? -- View this message in context: http://www.nabble.com/Time-stamp-in-file-name-tf3619129.html#a10105185 Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Staufferhttp://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Time stamp in file name
Is there a way that I can add a timestamp to the file name that is not just a rolling appender? I may start up and stop my software 10 or more times during the course of a day and between those I have to remane the log file created manually. Does any one know of a way to automatically add a timestamp to the file name at the start of the software initialization? -- View this message in context: http://www.nabble.com/Time-stamp-in-file-name-tf3619129.html#a10105185 Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]