Log::Dispatch::Config

Log::Dispatch::Config is a Log4j for Perl.
Download

Log::Dispatch::Config Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tatsuhiko Miyagawa
  • Publisher web site:
  • http://search.cpan.org/~miyagawa/

Log::Dispatch::Config Tags


Log::Dispatch::Config Description

Log::Dispatch::Config is a Log4j for Perl. Log::Dispatch::Config is a Log4j for Perl.SYNOPSIS use Log::Dispatch::Config; Log::Dispatch::Config->configure('/path/to/log.conf'); my $dispatcher = Log::Dispatch::Config->instance; $dispatcher->debug('this is debug message'); $dispatcher->emergency('something *bad* happened!'); # automatic reloading conf file, when modified Log::Dispatch::Config->configure_and_watch('/path/to/log.conf'); # or if you write your own config parser: use Log::Dispatch::Configurator::XMLSimple; my $config = Log::Dispatch::Configurator::XMLSimple->new('log.xml'); Log::Dispatch::Config->configure($config);Log::Dispatch::Config is a subclass of Log::Dispatch and provides a way to configure Log::Dispatch object with configulation file (default, in AppConfig format). I mean, this is log4j for Perl, not with all API compatibility though.METHODThis module has a class method configure which parses config file for later creation of the Log::Dispatch::Config singleton instance. (Actual construction of the object is done in the first instance call).So, what you should do is call configure method once in somewhere (like startup.pl in mod_perl), then you can get configured dispatcher instance via Log::Dispatch::Config->instance. Requirements: · Perl


Log::Dispatch::Config Related Software