Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Log::Log4perl Module

by broomduster (Priest)
on Feb 12, 2011 at 15:03 UTC ( [id://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).

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2025-01-15 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (46 votes). Check out past polls.