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:
Looks very good. Two questions:On Thu, Aug 18, 2011 at 11:21 AM, Kazu Yamamoto <kazu@iij.ad.jp> wrote:
> Hello,
>
> Sorry for the delay but I have released wai-logger:
> http://hackage.haskell.org/package/wai-logger
>
> I provide low level modules and a high level module. Users should use
> the low level modules. The high level module is designed for Mighttpd
> which uses the prefork technique.
>
> A sample code is found in its module documentation.
>
> Please use this package and give me feedback. And let's consider how
> to make this as a WAI middle ware.
>
> --Kazu
>
> _______________________________________________
> web-devel mailing list
> web-devel@haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
1. I thought the conclusion of the previous discussion was that
updating the time every second via a thread was less efficient than
comparing timestamps and updating as necessary.
2. Would it make sense to use a Builder (from blaze-builder) in place
of LogStr? Though based on the black magic you have going on under the
surface there, I'm guessing you did it this way for a reason ;).
Thanks,
Michael
_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel