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

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
Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-11-27 13:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (729 votes), past polls