Role::Log::Syslog::Fast - A Logging role for Moose on Log::Syslog::Fast
version 0.14
{ package ExampleLog; use Moose; with 'Role::Log::Syslog::Fast'; sub BUILD { my $self = shift; $self->_hostname('/var/run/syslog'); $self->_name('Example'); } sub test { my $self = shift; $self->log('foo'); } } my $obj = new ExampleLog; $obj->test;
A logging role building a very lightweight wrapper to Log::Syslog::Fast for use with Moose classes.
(message, [time])
Log::Syslog::Fast, Log::Syslog, Moose
Please report any bugs or feature requests to bug-moosex-log-syslog-fast@rt.cpan.org, or through the web interface at http://rt.cpan.org.
Or come bother us in #moose on irc.perl.org.
Thiago Rondon <thiago@aware.com.br>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Thiago Rondon <thiago@nsms.com.br>
This software is copyright (c) 2011 by Thiago Rondon.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Role::Log::Syslog::Fast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Role::Log::Syslog::Fast
CPAN shell
perl -MCPAN -e shell install Role::Log::Syslog::Fast
For more information on module installation, please visit the detailed CPAN module installation guide.