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]

Reply via email to