> Why creates RollingFileAppender only example.log and 
> example1.log? I need 
> exampleN.log files.

That's a case of configuring MaxBackupIndex - just set it to 15 to get
files example1.log to example15.log, for example.

> It's possible to create a file name like: 
> debug-YYYYMMDD.log?

Ah, now that's a different matter :)

I've written an appender called DatedFileAppender which creates log
files like that, but it rolls them in a different way - it always leaves
files called what they're called, just creating a new file with an
appropriate name when it notices the date changing. In other words, you
don't get example.log, you *always* get example-YYYYMMDD.log (or
whatever, depending on the configuration). I've found this to be more
reliable as it doesn't depend on the program running at the rollover
time.

You can find source code for DatedFileAppender in the developers mailing
list.

Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to