NAME
OpenPlugin::Log::Log4perl - Log4perl driver for the OpenPlugin::Log plugin
PARAMETERS
None.
CONFIG OPTIONS
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
Nothing known.
BUGS
None known.
SEE ALSO
OpenPlugin OpenPlugin::Log Log::Log4perl
COPYRIGHT
Copyright (c) 2001-2003 Eric Andreychek. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Eric Andreychek <eric@openthought.net>