|
From: Mike S. <m...@pe...> - 2004-04-09 16:38:44
|
Lee Carmichael wrote on 4/8/2004, 8:48 AM: > I would > really like to be able to use the 'get_logger' return > handle to get the appender and do the correct magic. You could write your own "MyNameSpace::LogByUserAppender" appender for this: (http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#e8a46) Its log() method would switch the logfile based on the user name stored by your app in MDC (http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl.html#4b5b3). -- -- Mike Mike Schilli m...@pe... |