Log::Fine::Levels::Syslog - Provides levels correlating to those provided by Syslog


Log-Fine documentation  | view source Contained in the Log-Fine distribution.

Index


NAME

Top

Log::Fine::Levels::Syslog - Provides levels correlating to those provided by Syslog

SYNOPSIS

Top

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 Log::Fine::Levels.

DESCRIPTION

Top

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 Log::Fine utility for interpreting log levels.

Log Levels

Log::Fine::Levels::Syslog bases its log levels on those found in Sys::Syslog. The following are exported into the caller's namespace:

* EMER
* ALRT
* CRIT
* ERR
* WARN
* NOTI
* INFO
* DEBG

Log Masks

Log masks can be exported for use in setting up individual handles (see Log::Fine::Handle). 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 Log::Fine::Handle for more information.

CONSTRUCTOR

Top

new

Returns a newly constructed object

BUGS

Top

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?Queue=Log-Fine. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Log::Fine::Levels::Syslog

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Log-Fine

* CPAN Ratings

http://cpanratings.perl.org/d/Log-Fine

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Log-Fine

* Search CPAN

http://search.cpan.org/dist/Log-Fine

REVISION INFORMATION

Top

  $Id: a6095dff62ce5f0a8d862c82528b862b743af8e7 $

AUTHOR

Top

Christopher M. Fuhrman, <cfuhrman at panix.com>

SEE ALSO

Top

perl, syslog, Log::Fine, Log::Fine::Levels, Sys::Syslog

COPYRIGHT & LICENSE

Top


Log-Fine documentation  | view source Contained in the Log-Fine distribution.