Jifty::Logger::EventAppender3pm
Create jifty events from log directives
Usage
In a log4perl config file:
log4perl.appender.Event=Jifty::Logger::EventAppenderlog4perl.appender.Event.class=YourApp::Event::Loglog4perl.appender.Event.arbitraryData=42log4perl.appender.Event.layout=SimpleLayout
Overview
This class is a Log::Log4perl-compatible appender which creates Jifty::Event::Log objects when a logging instruction is received.
Methods
new PARAMHASH
The "class" configuration parameter controls the class of the event to create. It defaults to Jifty::Event::Log. All other parameters are passed through to the event when it is created.
log PARAMHASH
Creates an instance of the event with all of the configuration parameters set in the log4perl config file, as well as all of the contents of the "PARAMHASH" -- see Log::Log4perl::Appender for details of the arguments therein.
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.