NAME

XAS::Lib::Log::Syslog - A class for logging syslog

DESCRIPTION

This module is for logging to syslog.

METHODS

new

This method initializes syslog. Sets the process, facility and requests that the pid be included.

output($hashref)

This method translate the log level to an appropriate syslog priority and writes out the log line. The translation is a follows:

    info  => 'info',
    error => 'err',
    warn  => 'warning',
    fatal => 'alert',
    trace => 'notice',
    debug => 'debug'

destroy

Closes the connection to syslog.

SEE ALSO

XAS::Lib::Log
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (c) 2012-2014 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.