Welcome! Log In Create A New Profile

Advanced

Re: PATCH: $time_custom supports a custom log timestamp

August 24, 2009 03:20PM
Hi,

> The code caches the strftime() expansion so that all loggers using the
> named log format cause strftime() to be called at most once per second.

Could you elaborate a little bit more on that part? If the time is
cached for one second, it makes little sense to use millisecond
precision. Or did I get something wrong? I suppose that in debug mode
I'd like strftime() value to be not cached at all, so that I get
millisecond-accurate times and I can measure request/response times to
backends etc. OTOH in production mode if I'm under heavy load (tons of
reqs/s) I may want to see millisecond-accurate times for some reason.
In that case maybe strftime() can be cached request-wise instead of
second-wise. But, if you log only one line per request, such caching
doesn't bring any improvement. So maybe you could make caching
configurable via some other directive? And does
not-caching-strftime-value cause big performance impact anyway?

These are my thoughts. It's a nice piece of work anyway!

Cheers,

--
MichaƂ Jaszczyk
Subject Author Posted

PATCH: $time_custom supports a custom log timestamp

Wayne Davison August 24, 2009 02:02PM

Re: PATCH: $time_custom supports a custom log timestamp

jasiu85 August 24, 2009 03:20PM

Re: PATCH: $time_custom supports a custom log timestamp

Wayne Davison August 24, 2009 04:04PM

Re: PATCH: $time_custom supports a custom log timestamp

Cliff Wells August 24, 2009 03:27PM

Re: PATCH: $time_custom supports a custom log timestamp

Marcus Clyne August 24, 2009 08:50PM

Re: PATCH: $time_custom supports a custom log timestamp

Wayne Davison August 25, 2009 01:31AM

Re: PATCH: $time_custom supports a custom log timestamp

Wayne Davison August 24, 2009 07:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready