Algorithm-Genetic-Diploid
view release on metacpan or search on metacpan
lib/Algorithm/Genetic/Diploid/Logger.pm view on Meta::CPAN
}
# this is where methods such as $log->info ultimately are routed to
sub AUTOLOAD {
my ( $self, $msg ) = @_;
my $method = $AUTOLOAD;
$method =~ s/.+://;
# only proceed if method was one of fatal..debug
if ( exists $levels{$method} ) {
my ( $package, $file1up, $line1up, $subroutine ) = caller( 1 );
my ( $pack0up, $filename, $line, $sub0up ) = caller( 0 );
# calculate what the verbosity is for the current context
# (either at sub, package or global level)
my $verbosity;
if ( exists $VERBOSE{$subroutine} ) {
$verbosity = $VERBOSE{$subroutine};
}
elsif ( exists $VERBOSE{$pack0up} ) {
$verbosity = $VERBOSE{$pack0up};
}
( run in 0.437 second using v1.01-cache-2.11-cpan-b61123c0432 )