|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Persistent logging...by salonmonk (Beadle) |
| on Mar 11, 2007 at 11:05 UTC ( [id://604209]=perlquestion: print w/replies, xml ) | Need Help?? |
|
salonmonk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks ! 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.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||