Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Log::Log4perl Module

by broomduster (Priest)
on Feb 12, 2011 at 15:03 UTC ( #887768=note: print w/ replies, xml ) Need Help??


in reply to Log::Log4perl Module

I was thinking of rolling this up myself with a Buffered Appender, but this FAQ looks as if it does just that:

How can I bundle several log messages into one?

(with a little seasoning to taste for the log message, of course).


Comment on Re: Log::Log4perl Module
Re^2: Log::Log4perl Module
by andreas1234567 (Vicar) on Feb 14, 2011 at 06:19 UTC
    A side effect of this buffering approach is that the timestamp will be incorrect for most messages, especially when there is a long delay between messages. Adding time-based signals could reduce the problem, but not mitigate it completely.
    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]
      Agreed. The OP is apparently trying to emulate behavior of syslog, where some(?) implementations do this by default. But there are plenty of rants about why this is not necessarily a good idea.
Re^2: Log::Log4perl Module
by nvivek (Vicar) on Feb 15, 2011 at 05:21 UTC

    Thanks a lot. I done appropriate checking in the log function to compare the messages excluding timestamp.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://887768]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-10-21 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (111 votes), past polls