Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

log file in Log4perl

by palette (Scribe)
on Jan 12, 2007 at 11:18 UTC ( [id://594350]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    log4perl.logger.ClassA = DEBUG, ClassA
    
    ...
              my $log_file="/tmp/ClassA".$date.".log";
              return $log_file;
    }
    
  2. or download this
    
    BEGIN {
            Log::Log4perl::init_and_watch('/etc/log4perl.conf',5);
            $__PACKAGE__::mylog=Log::Log4perl->get_logger();
    }
    
  3. or download this
    #   in classa.t at line 8.
    #     Tried to use 'ClassA'.
    #     Error:  Can't evaluate 'sub  {' (Missing right curly or square b
    +racket at (eval 136) line 2, at end of line
    # syntax error at (eval 136) line 2, at EOF
    # ) at /usr/local/lib/perl5/site_perl/5.8.5/Log/Log4perl/Config.pm lin
    +e 715.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://594350]
Approved by Melly
Front-paged by andyford
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found