1) http://stauffer.james.googlepages.com/DateFormatFileAppender.java can do that. 2) You can probably get it from the appender (get from the logger).
On 3/20/07, Dmitri Pissarenko <[EMAIL PROTECTED]> wrote:
Hello! I have a desktop Java application and want that it has a separate file for each session. That is, every time time the application launches, a log file should be generated, whose name has following structure: xyz-log-YYYY-MM-DD-HH-mm-SS.log where YYYY is year, MM - month, DD - day, HH - hour, mm - minute, SS - second. 1) How can I configure log4j to do that? 2) Is it possible to determine the name of the current log file (log file of the running session) in Java program? Thanks in advance Dmitri Pissarenko --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- James Stauffer http://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]
