vibe.d HTMLLogger

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 12 07:24:43 PDT 2016


On Wednesday, 12 October 2016 at 14:19:36 UTC, Chris wrote:
>
> The answer is that `HTMLLogger` needs to be given the time in 
> the `LogLine` struct, else it fails. The time stamp is not auto 
> generated. I completely overlooked that.
>
> Here's the culprit:
>
> cf.
>
> m_logFile.writef(`<div class="timeStamp">%s</div>`, 
> msg.time.toISOExtString());
>
> https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/core/log.d#L363

I wonder, if the design of HTMLLogger couldn't be improved in 
this respect. It's not an obvious error.


More information about the Digitalmars-d-learn mailing list