MojoX::Log::Syslog - Blah blah blah
use MojoX::Log::Syslog;
$app->log( MojoX::Log::Syslog->new(
facility => 'LOCAL1',
ident => 'my_app_name',
logopt => 'ndelay,pid'
) );
MojoX::Log::Syslog provies a Mojo::Log implementation that uses Sys::Syslog as the underlying log mechanism.
Mojo::Log's fatal() processed same as error() because Sys::Syslog doesn't support that log level.
MojoX::Log::Syslog implements the following attributes.
syslog facility, default to USER
syslog ident, default to basename($0)
syslog logopt, default to 'pid'
Fayland Lam fayland@gmail.com
Copyright 2016- Fayland Lam
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.