[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Cooperating with logrotate
- Subject: [ale] Cooperating with logrotate
- From: jknapka at kneuro.net (JK)
- Date: Sat, 07 Nov 2009 21:00:06 -0700
- In-reply-to: <1257538379.23457.109.camel@compaq>
- References: <[email protected]> <[email protected]> <[email protected]> <1257538379.23457.109.camel@compaq>
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