Jifty::Logger::EventAppender - Create Jifty events from log directives
In a log4perl config file:
log4perl.appender.Event=Jifty::Logger::EventAppender log4perl.appender.Event.class=YourApp::Event::Log log4perl.appender.Event.arbitraryData=42 log4perl.appender.Event.layout=SimpleLayout
This class is a Log::Log4perl-compatible appender which creates Jifty::Event::Log objects when a logging instruction is received.
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.
class
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.
PARAMHASH
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.