GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Dancer::Logger::Syslog(3) User Contributed Perl Documentation Dancer::Logger::Syslog(3)

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

version 0.6

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

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

You can also specify the other configuration via the 'syslog' config key, e.g.

 syslog:
   facility: 'local0'
   ident: 'my_app'

The allowed options are:

facility
Which syslog facility to use, defaults to 'USER'
ident
String prepended to every log line, defaults to the configured appname or, if not defined, to the executable's basename.
logopt
Log options passed top "openlog()" as per Sys::Syslog's docs. Defaults to 'pid'.

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

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.

This module depends on Sys::Syslog.

See Dancer for details about logging in route handlers.

  • Alexis Sukrieh <sukria@sukria.net>
  • Yanick Champoux <yanick@cpan.org>

This software is copyright (c) 2010 by Alexis Sukrieh.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.