Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Thanks Eric for the response. I found another way of handling this situation that works well if the script isnt in any sort of clean heirarchy. It uses the Log::Log4perl::filter. Here is the code:
log4perl.logger=INFO, FatalFile, FatalMailer, InfoLog log4perl.filter.MatchFatal = Log::Log4perl::Filter::LevelMatch log4perl.filter.MatchFatal.LevelToMatch = FATAL log4perl.filter.MatchFatal.AcceptOnMatch = true log4perl.filter.MatchInfo = Log::Log4perl::Filter::LevelMatch log4perl.filter.MatchInfo.LevelToMatch = INFO log4perl.filter.MatchInfo.AcceptOnMatch = true log4perl.appender.FatalFile=Log::Dispatch::File log4perl.appender.FatalFile.filename=test.log log4perl.appender.FatalFile.mode=append log4perl.appender.FatalFile.layout=PatternLayout log4perl.appender.FatalFile.layout.ConversionPattern=%d %p> %F{1}:%L % +M - %m%n log4perl.appender.FatalFile.Filter = MatchFatal log4perl.appender.FatalMailer = Log::Dispatch::Email::MailSend +mail log4perl.appender.FatalMailer.to = joeshmoe log4perl.appender.FatalMailer.from = joeshmoe log4perl.appender.FatalMailer.subject = Something's broken! log4perl.appender.FatalMailer.layout = SimpleLayout log4perl.appender.FatalMailer.Filter = MatchFatal log4perl.appender.InfoLog=Log::Dispatch::File log4perl.appender.InfoLog.filename=mailer.log log4perl.appender.InfoLog.mode=append log4perl.appender.InfoLog.layout=PatternLayout log4perl.appender.InfoLog.layout.ConversionPattern=%d %p> %m%n log4perl.appender.InfoLog.Filter = MatchInfo

In reply to Re: Re: using log4perl by tbone
in thread using log4perl by tbone

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 03:54 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found