salonmonk has asked for the wisdom of the Perl Monks concerning the following question:
I've just been given what seems like a simple enough problem, but I'm hoping some of you better travelled Perl hackers might be able to give me some advice or problems that you might have come across.
Basically I need to write a logger. It will be taking input from a serial port and dumping its data out to a file. The only problem I can see is that another process might want to look at that log file every so often, so I need to flush to the log every so often.
Data might come from the serial port very quickly - so I'm wondering how I prevent buffers of various kinds getting full.
What kind of things should I look out for ? Or is there a module (I'm almost cringing right now because I haven't yet looked) that will do all this without me writing a line of code in anger....
anything very much appreciated. ** off to check the wonderland; CPAN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Persistent logging...
by andyford (Curate) on Mar 11, 2007 at 11:51 UTC | |
|
Re: Persistent logging...
by zentara (Cardinal) on Mar 11, 2007 at 11:57 UTC | |
|
Re: Persistent logging...
by ides (Deacon) on Mar 11, 2007 at 15:55 UTC | |
by superfrink (Curate) on Mar 12, 2007 at 04:30 UTC | |
|
Re: Persistent logging...
by fmerges (Chaplain) on Mar 12, 2007 at 10:16 UTC |