Custom logging
Ken Murchison
ken at oceana.com
Wed Jan 7 15:14:07 EST 2004
Mark Hellman wrote:
> I would like to process Cyrus logs and do some date arithmetic. But this
> is difficult because Syslog does not log the year, only month and day. And
> changing Syslog date format involves recompiling its source, and risking
> breaking other program that depend on Syslog's default date format.
>
> One solution would be Cyrus to append a timestamp to every entry it sends
> to syslog. This timestamp would be in UNIX time.
> What parts of Cyrus source must I change to achieve this?
Cyrus doesn't use any abstraction layer to call syslog(), so you either
need to change every syslog() call in the source, or write something
like a SYSLOG() macro which does the timestamp append and calls syslog.
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
More information about the Info-cyrus
mailing list