The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Log::Any::Adapter::Syslog - Send Log::Any logs to syslog

VERSION

version 1.4

SYNOPSIS

use Log::Any::Adapter;
Log::Any::Adapter->set('Syslog');

# You can override defaults:
use Unix::Syslog qw{:macros};
Log::Any::Adapter->set(
    'Syslog',
    # name defaults to basename($0)
    name     => 'my-name',
    # options default to LOG_PID
    options  => LOG_PID|LOG_PERROR,
    # facility defaults to LOG_LOCAL7
    facility => LOG_LOCAL7
);

DESCRIPTION

Log::Any is a generic adapter for writing logging into Perl modules; this adapter use the Unix::Syslog module to direct that output into the standard Unix syslog system.

CONFIGURATION

Log::Any::Adapter::Syslog is designed to work out of the box with no configuration required; the defaults should be reasonably sensible.

You can override the default configuration by passing extra arguments to the Log::Any::Adapter method:

AUTHORS

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Stephen Thirlwall.

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