| OpenPlugin documentation | view source | Contained in the OpenPlugin distribution. |
OpenPlugin::Log::Log4perl - Log4perl driver for the OpenPlugin::Log plugin
None.
Log4perl
<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.
Nothing known.
None known.
OpenPlugin OpenPlugin::Log Log::Log4perl
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.
Eric Andreychek <eric@openthought.net>
| OpenPlugin documentation | view source | Contained in the OpenPlugin distribution. |