OpenPlugin::Log::Log4perl - Log4perl driver for the OpenPlugin::Log plugin


OpenPlugin documentation  | view source Contained in the OpenPlugin distribution.

Index


NAME

Top

OpenPlugin::Log::Log4perl - Log4perl driver for the OpenPlugin::Log plugin

PARAMETERS

Top

None.

CONFIG OPTIONS

Top

* driver

Log4perl

* driver options
 <driver Log4perl>
    [Log:::Log4perl options go here, see L<Log::Log4perl>]
 </log4perl>

 Example using a conf style config:
 <driver Log4perl>
    category.OpenPlugin.Application.MyApp          = WARN, myloghandler
    category.OpenPlugin.Application.MyApp.SubClass = DEBUG, myloghandler

    appender.myloghandler              = Log::Dispatch::Screen
    appender.myloghandler.layout       = org.apache.log4j.PatternLayout
    appender.myloghandler.layout.ConversionPattern = %F (%L) %m%n
 </driver>

The above example enables logging at the WARN level and above for MyApp. But for MyApp::SubClass, the level is DEBUG, which enables all logging. Since MyApp::SubClass does not define a seperate appendar (a logging handler), MyApp::SubClass uses the handler defined by MyApp -- which prints to STDERR.

Log handlers (appenders), such as Syslog, STDERR, and Files, are defined using Log::Dispatch:: drivers.

TO DO

Top

Nothing known.

BUGS

Top

None known.

SEE ALSO

Top

OpenPlugin OpenPlugin::Log Log::Log4perl

COPYRIGHT

Top

AUTHORS

Top

Eric Andreychek <eric@openthought.net>


OpenPlugin documentation  | view source Contained in the OpenPlugin distribution.