| Log::Fine::Levels::Syslog - Provides levels correlating to those provided by Syslog |
Log::Fine::Levels::Syslog - Provides levels correlating to those provided by Syslog
Defines log level values and masks correlating to those provided by Syslog.
use Log::Fine;
use Log::Fine::Levels::Syslog;
# grab a logging object
my $log = Log::Fine->getLogger("foo0");
# Note that INFO and EMER are provided by the
# Log::Fine::Levels::Syslog object
$log->log(INFO, "I'm not mad at you, I'm mad at the dirt");
$log->log(EMER, "No more wire hangers ... EVER!");
Note that this is the default class for the Log::Fine::Levels manpage.
Log::Fine::Levels::Syslog provides logging and mask constants mimicking those provided by the classic UNIX syslog(3) utility. This class is also used internally by the the Log::Fine manpage utility for interpreting log levels.
Log::Fine::Levels::Syslog bases its log levels on those found in the Sys::Syslog manpage. The following are exported into the caller's namespace:
Log masks can be exported for use in setting up individual handles (see the Log::Fine::Handle manpage). The following masks are exported into the caller's namespace:
LOGMASK_EMERG
LOGMASK_ALERT
LOGMASK_CRIT
LOGMASK_ERR
LOGMASK_WARNING
LOGMASK_NOTICE
LOGMASK_INFO
LOGMASK_DEBUG
See the Log::Fine::Handle manpage for more information.
Returns a newly constructed object
perl, syslog, the Log::Fine manpage, the Log::Fine::Levels manpage, the Sys::Syslog manpage
Christopher M. Fuhrman, <cfuhrman at panix.com>
Please report any bugs or feature requests to
bug-log-fine at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html.
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.
perldoc Log::Fine::Levels::Syslog
You can also look for information at:
$Id: 9a5328ae92d6ce8b732a1621fb5998166951250d $
Copyright (c) 2009, 2010 Christopher M. Fuhrman, All rights reserved.
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
| Log::Fine::Levels::Syslog - Provides levels correlating to those provided by Syslog |