Help for this page

Select Code to Download


  1. or download this
    my $LOG_ERROR;                                                        
    +                                 
    my $_log_error_sub_cache;
    sub setup
    ...
        no warnings 'redefine';
        *Foo::Bar:_log_error = $_log_error_sub_cache;
    }
    
  2. or download this
    use Foo::Test::LogMessages;
    my $log = Foo::Test::LogMessages->new;
    
    ...
    {
      # do something
    }