NAME

Dancer::Logger::Syslog - Dancer logger engine for Sys::Syslog

DESCRIPTION

This module implements a logger engine that send log messages to syslog, through the Sys::Syslog module.

CONFIGURATION

The setting logger should be set to syslog in order to use this session engine in a Dancer application.

You can also specify the facility to log to via the 'facility' parameter, e.g.

syslog:
  facility: 'local0'

The default facility is 'USER'.

METHODS

init()

The init method is called by Dancer when creating the logger engine with this class.

format_message()

This method defines how to format messages for Syslog, it's a bit different than the standard one provided by Dancer::Logger::Abstract because Syslog already provides a couple of information.

DEPENDENCY

This module depends on Sys::Syslog.

AUTHOR

This module has been written by Alexis Sukrieh

SEE ALSO

See Dancer for details about logging in route handlers.

COPYRIGHT

This module is copyright (c) 2010 Alexis Sukrieh <sukria@sukria.net>.

LICENSE

This module is free software and is released under the same terms as Perl itself.