Help for this page

Select Code to Download


  1. or download this
    log4perl.PatternLayout.cspec.S = sub { return '    ' x level_for_l4p()
    +; }
    log4perl.appender.std.layout.ConversionPattern  = %-27F %3L %S%m%n
    
  2. or download this
    my $zerolevel = 8;
    sub level_for_l4p {
    ...
        return ( $level - $zerolevel );
    }
    Log::Log4perl::init( 'log4perl.conf' );
    
  3. or download this
    /My/Project/One/File.pm      12    sub0: calling sub1
    /My/Project/Another/File.pm  96        sub1: entering
    ...
    /My/Project/Another/File.pm 115        sub1: leaving
    /My/Project/One/File.pm      16    sub0: continuing after sub1
    # etc.
    
  4. or download this
    /My/Project/One/File.pm:12:         sub0: calling sub1
    /My/Project/Another/File.pm:96:         sub1: entering
    ...
    /My/Project/Another/File.pm:108:        sub1: continuing after sub2
    /My/Project/Another/File.pm:115:        sub1: leaving
    /My/Project/One/File.pm:16:         sub0: continuing after sub1