[logback-user] Multiple files and other issues
ceki at qos.ch
Fri Mar 6 12:16:35 CET 2009
The type of separation is possible. However, it is a relatively advanced
feature. I suggest that you start by using MDC and go from there. MDC will allow
you to distinguish log entries from issued from different sessions. However, all
the logs will still go to the same file.
Documentation on MDC can be found at
Marco Bresciani wrote:
> Sorry, I was not clear.
> What happens now, with the basic file, is:
> 1. I run my application;
> 2. the file trace/WebEML is created;
> 3. the application is running;
> 4. I run another session of my application (i.e.: double click again);
> 5. the same trace/WebEML file seems used.
> I'd like to have, for example, something like:
> trace/WebEML_111145.log for the first application session, ran at 11:11.45
> trace/WebEML_111222.log for the secon application session, ran at 11:12.22
> or something like that, in order to distinguish the two different logs. Is
> it possible?
> Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> autenticato? GRATIS solo con Email.it: http://www.email.it/f
> Blu American Express: gratuita a vita!
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8697&d=20090306
> Logback-user mailing list
> Logback-user at qos.ch
Logback: The reliable, generic, fast and flexible logging framework for Java.
More information about the Logback-user