Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Thanks for the feedback.. in response to your questions..

  • I had tried it to some extent, and hadn't seen difficulties. The issue though is that I can imagine it being the kind of thing that'd seem perfectly happy that one time something unforeseen happened and it's under incredible load.. at which point it all goes horribly wrong, data loss and badness.
  • It would be logging from all of the concurrent threads to the logfile since, in principle at least, all of the threads constitute the one service and those responsible for administering it would probably prefer a single easy-to-read log.
  • I'd not tried putting the lock there since I'd not seen the problem yet, also if Log4perl was happy multithreaded then I'd rather not have the performance hit of another set of locking.
  • The seperate functions have unit tests as far as is practical, unfortunately given the way the module slimes under the skin of Sendmail the only full way to test it is to fire off a bunch of mails at it and check it does what's expected. There is a basic test for this too, but it doesn't touch the logging as yet.


In reply to Re: Re: Will Log4perl work threaded? by Molt
in thread Will Log4perl work threaded? by Molt

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 about the Monastery: (6)
As of 2024-03-28 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found