Re: SMP: logging

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 23 Feb 2010 12:35:42 -0700

On 02/23/2010 12:13 PM, Henrik Nordström wrote:
> tis 2010-02-23 klockan 08:47 -0700 skrev Alex Rousskov:
>
>> Let's compare the pros of a dedicated logging daemon with those of O_APPEND.
>>
>> Daemon: Simplifies log rotation implementation.
>
> And simplifies a whole lot when trying to send logs anywhere else than a
> plain file,

Agreed, but only provided that "anywhere else" cannot accept records
from multiple processes. Syslog, databases, and remote loggers usually
can. For those examples (which we already support, IIRC), the
centralized daemon offers no significant advantage.

> or if wanting to perform any filtering on the logs before
> stored on disk.

I am not sure I agree. The filtering code can run inside each logging
process. It would probably be more efficient that way too.

Thank you,

Alex.
Received on Tue Feb 23 2010 - 19:36:03 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 24 2010 - 12:00:10 MST