Log::Syslog::Abstract - Use any available syslog API
use Log::Syslog::Abstract qw(openlog syslog closelog); openlog( 'myapp', 'pid,ndelay', 'local0' ); ... syslog('info', '%s: %s', 'Something bad happened', $!); ... closelog();
Opens a connection to the system logger.
$ident is an identifier string that syslog will include in every message. It is normally set to the process name.
$options is a comma-separated list of options. Valid options are:
$facility is a string indicating the syslog facility to be used. Valid values are:
Generates a log message and passes it to the appropriate syslog backend.
$priority should be a string containing one of the valid priority names:
$format is a format string in the style of printf(3)
@args is a list of values that will replace the placeholders in $format
Closes the connection to syslog.
Nothing is exported by default. Specify what you need on the use() line, or call with package-qualified name.
<dmo at roaringpenguin.com>
Please report any bugs or feature requests to
bug-log-syslog-abstract at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Log-Syslog-Abstract. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2007 Dave O'Neill, all rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.