Hi Michael,
I read some threads about that and the user level, but I don't like this
way.
What I understood (i think no :-) ) about the use of multiple loggers
is that I should have in my classes always availble more than one logger:
Logger myLogger = new Logger("x.y.z");
Logger myDebugLogger = new Logger("x.y.z.debug");
and I should log any message in both loggers and i should redirect to
the myDebugLogger the log coming from some user...ehmmm....i'm
confused....can you give me more details ?
Ste
Michael Giroux wrote:
Have you considered using multiple loggers?
You could configure a standard logger with WARN or ERROR level:
log4j.logger.com.myco.myapp=WARN,a1
You could configure additional loggers that would be used when you
want individual users to be logging at lower levels:
log4j.logger.com.myco.myapp.debug=DEBUG,a1
When your application decides it needs to debug for a user, you would
get the 'com.myco.myappl.debug' logger.
Does this help, or have I misunderstood your requirement?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]