Skip to content

Instantly share code, notes, and snippets.

@ynonp
Created July 6, 2012 11:32
Show Gist options
  • Select an option

  • Save ynonp/3059671 to your computer and use it in GitHub Desktop.

Select an option

Save ynonp/3059671 to your computer and use it in GitHub Desktop.
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