logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Giroux" <mlgir...@gmail.com>
Subject Re: Level per user
Date Tue, 17 Oct 2006 13:31:50 GMT
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message