Help for this page

Select Code to Download


  1. or download this
    our $filename;
    
    ...
    }
    use Log::StdLog { file => $filename };
    print {*STDLOG} warn => 'Works fine!!!';
    
  2. or download this
    my $filename = '/tmp/mylogfile';
    require Log::StdLog;
    Log::StdLog->import({ file => $filename });
    print {*STDLOG} warn => 'Works fine!!!';