Re: [Catalyst] How to enhance Log4Perl log-files about the loggend in user ($c-user-id)?

2009-07-23 Thread Jon Schutz
Somewhere early on on the request cycle do Log::Log4perl::MDC-put( 'user' = $user ); then insert it into your log messages via your Log4perl configuration such as: log4perl.appender.Logfile.layout.ConversionPattern: %d %-5p %c - USER:%X{user} - %m%n Christoph Metz wrote: Hi, i got a

Re: [Catalyst] How to enhance Log4Perl log-files about the loggend in user ($c-user-id)?

2009-07-23 Thread Tomas Doran
Jon Schutz wrote: Somewhere early on on the request cycle do Log::Log4perl::MDC-put( 'user' = $user ); then insert it into your log messages via your Log4perl configuration such as: log4perl.appender.Logfile.layout.ConversionPattern: %d %-5p %c - USER:%X{user} - %m%n Doc patches on

Re: [Catalyst] How to enhance Log4Perl log-files about the loggend in user ($c-user-id)?

2009-07-22 Thread Bill Moseley
On Tue, Jul 21, 2009 at 7:41 AM, Christoph Metz mail-...@web.de wrote: i want to see which debug/error/warn message was logged by which user. I'm using this early in the request after I have $user. Log::Log4perl::MDC-put( 'user', $user-id ); -- Bill Moseley mose...@hank.org

[Catalyst] How to enhance Log4Perl log-files about the loggend in user ($c-user-id)?

2009-07-21 Thread Christoph Metz
Hi, i got a Catalyst-App which inits a session on the startpage, after a user logged sucessfully in with his login-data. Now, i also use Log4Perl to do extensive logging, as far as the app is enough tested. so i use the log4perl conf file this way: