-
-
21 Dec 2007 18:14:28 UTC
- Distribution: MooseX-LazyLogDispatch
- Module version: 0.02
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (1234 / 7 / 3)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (21.29KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Log::Dispatch::Configurator
- Moose
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MooseX::LazyLogDispatch::Levels - Like MX::LazyLogDispatch, but with level-methods
SYNOPSIS
package Foo; use Moose; with 'MooseX::LazyLogDispatch::Levels' # ... See MooseX::LazyLogDispatch synposis # for configuration # But now you have direct level methods: sub foo { my ($self) = @_; $self->debug('started foo'); # ^ is identical to v $self->logger->debug("started foo"); }
DESCRIPTION
See MooseX::LazyLogDispatch for the main docs.
This just adds level methods for the
$self-
logger> levels directly to your class, in addition to bringing in that role.LEVEL METHOD NAMES
log
debug
info
notice
warning
error
critical
alert
emergency
SEE ALSO
MooseX::LazyLogDispatch MooseX::LogDispatch Log::Dispatch::Configurator Log::Dispatch::Config Log::Dispatch
AUTHOR
Brandon Black
<blblack@gmail.com>
Based in part on MooseX::LogDispatch by Ash Berlin
<ash@cpan.org>
and<perigrin@cpan.org>
LICENCE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
Module Install Instructions
To install MooseX::LazyLogDispatch, copy and paste the appropriate command in to your terminal.
cpanm MooseX::LazyLogDispatch
perl -MCPAN -e shell install MooseX::LazyLogDispatch
For more information on module installation, please visit the detailed CPAN module installation guide.