Help for this page

Select Code to Download


  1. or download this
    package Foo;
    use strict;
    ...
      return unless exists $self->{LOGGER};
      $self->{LOGGER}->debug(@_);
    }
    
  2. or download this
    my $logger = SomeOtherLogger->new(log_level => 'debug');
    my $foo = Foo->new(LOGGER => $logger);
    
  3. or download this
    use Scalar::Util qw( blessed );
    sub debug {
    ...
      $self->{LOGGER}->debug(@_);
    }