| Log-Log4perl documentation | Contained in the Log-Log4perl distribution. |
Log::Log4perl::JavaMap::NTEventLogAppender - wraps Log::Dispatch::Win32EventLog
This maps log4j's NTEventLogAppender to Log::Dispatch::Win32EventLog
Possible config properties for log4j NTEventLogAppender are
Source
Possible config properties for Log::Dispatch::Win32EventLog are
source
Boy, that was hard.
http://jakarta.apache.org/log4j/docs/
Log::Log4perl::Javamap
Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Log-Log4perl documentation | Contained in the Log-Log4perl distribution. |
package Log::Log4perl::JavaMap::NTEventLogAppender; use Carp; use strict; sub new { my ($class, $appender_name, $data) = @_; my $stderr; my ($source, # ); if (defined $data->{Source}{value}) { $source = $data->{Source}{value} }elsif (defined $data->{source}{value}){ $source = $data->{source}{value}; }else{ $source = 'user'; } return Log::Log4perl::Appender->new("Log::Dispatch::Win32EventLog", name => $appender_name, source => $source, min_level => 'debug', ); } 1;