
Hello,
For 1), The previous discussion just concluded that the time to fetch the date is very small. The advantage of always fetching the date is that you can remove the need for a separate date thread [1]. I always think of delays as a code smell and look for other ways of doing things. In this case the docs state:
The real problem is that the logging date fromat is *a zone time*. It
is a tough job to implement due to a time zone. Data.Time can produce
it but it is too slow for our purpose. This is why wai-logger uses
Data.Time just once every second.
I looked the code of snap-core and it fixes this problem using C's
strftime.
OK. I will try to call the following C code everytime without the date
thread and compare it with the original.
--Kazu
#include