[Catalyst] Need the request object when auto logging debug messages

Steve Nolte mcsnolte at gmail.com
Wed Nov 17 23:22:51 GMT 2010


I've enhanced logging to do my own with a Moose 'after' using:

Moose::Util::apply_all_roles(MyApp->log, 'My::Logger');

which inserts warn, error, and fatal messages into a DB.  But I want
to also include info about the request they came from and the active
user.  Any suggestions on how to get at that info from my custom
logger?



More information about the Catalyst mailing list