Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Avoiding Log4perl message duplication and better ways to use/cleanup code

by chanakya (Friar)
on Jul 26, 2009 at 16:09 UTC ( #783344=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    bin/
    conf/
    lib/ABC::Parser.pm
    lib/ABC::Parser2.pm
    lib/ABC::Parser3.pm
    
  2. or download this
    [log4perl]
    log4perl.logger= INFO, Logfile, ERROR, DEBUG, Screen
    ...
    log4perl.logger.ABC::Parser = INFO
    log4perl.logger.ABC::Parser1 = INFO
    log4perl.logger.ABC::Parser2 = INFO
    
  3. or download this
    package ABC::Parser;
    
    ...
    }
    1;
    
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        return $log;
    }
    __END__
    
  5. or download this
    
    -bash-3.00$ ./test_parser.pl 
    ...
    2009/07/26 06:13:29 INFO> done parsing
    2009/07/26 06:13:29 WARN> error
    2009/07/26 06:13:29 INFO> Created output file
    
  6. or download this
    2009/07/26 06:13:29 INFO> Starting ./parse_xheader.pl
    2009/07/26 06:13:29 INFO> Starting ./parse_xheader.pl
    ...
    2009/07/26 06:13:29 INFO> Created output file
    2009/07/26 06:13:29 INFO> Created output file
    2009/07/26 06:13:29 INFO> Created output file
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2023-06-01 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?