http://www.perlmonks.org?node_id=887768


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).

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.