[ale] Cooperating with logrotate

JK jknapka at kneuro.net
Sat Nov 7 23:00:06 EST 2009


Chris Fowler wrote:

> log() {
>   open file in append mode
>   write log messages
>   close file
>   return
> }


At first I thought, "Ick."  I'd considered this solution already and
rejected it because it was "obviously" horribly inefficient.  But
after reading your message I realized: it's just a logfile. And if
I'm logging so much that the open/close operations cause any
appreciable amount of overhead, I'm probably in trouble anyway.

-- JK


More information about the Ale mailing list