Dancer::Logger::Syslog(3pm)

Dancer::Logger::Syslog3pm

Dancer logger engine for sys::syslog

Version

version 0.6

Overview

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 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'.

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–10
  2. 11
  3. 12–13

Authors

•

Alexis Sukrieh <[email protected]>

•

Yanick Champoux <[email protected]>

From libdancer-logger-syslog-perl 0.6-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.