Created
July 6, 2012 11:32
-
-
Save ynonp/3059671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package MyApp; | |
| use Moose; | |
| with 'MooseX::Log::Log4perl'; | |
| sub go { | |
| my $self = shift; | |
| $self->log->debug('Starting method go'); | |
| $self->log->info('Go go go'); | |
| $self->log('IO')->info('reading data'); | |
| } | |
| package main; | |
| use Log::Log4perl; | |
| Log::Log4perl::init('log.conf'); | |
| my $x = MyApp->new; | |
| $x->go; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment