Re: [Exim] TZ logging buglet

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Anand Buddhdev
Fecha:  
A: exim-users
Asunto: Re: [Exim] TZ logging buglet
On Mon, Feb 21, 2000 at 06:36:34PM +0200, Vadim Vygonets wrote:

> > Exim can write the log in UTC, and then it's a simple matter of
> > converting from UTC to any timezone. The logfile can be shared
> > among different timezones, and each viewer can view the logs files
> > in their own time zone, by passing the logs through a converter
> > utility, that honours the TZ variable. And then, someone can view
> > the logs in _any_ timezone, simply by setting the variable accordingly.
>
> This a nice concept, and it's in no way exim-specific. But it's
> not too easy to implement, and I don't think people would like to


I don't want to start any wars here, but qmail outputs logs without any
timestamps, and leaving the timestamping to any program of our choice,
including syslog (yuck), accustamp and multilog. Because of exim's
monolithic structure, this may not be how exim does it, but I don't see
why it should be any different. Exim can internally generate a UTC
timestamp.

> view (or grep) logs inly by using the conversion utility. Doing
> "grep vadik@ /var/exim/log/mainlog" to see how many messages I
> sent and received today is easy and fits nice in my brain with
> the general concept of log grepping.


I generally do something like:

grep arb@??? /var/log/qmail-send/current | tai64nlocal

or

tai64nlocal < /var/log/qmail-send/current | less

It's not too different, and just takes a little getting used to. After a
while, you won't even notice it.

--
See complete headers for more info