Hi Patrick,

I hit the send button to early for the previous mail. Here's the second half of the answer:

On Jul 2, 2009, at 9:43 , Patrick Ohly wrote:

Does <appendtoexisting> work for HTML?

... in particular considering that HTML and XML need opening and closing
tags. The instance which starts an empty log could write the preamble,
but who writes the end?

The TDebugLoggerBase object handles all this. The new <logsessionstoglobal> which makes one logger use another for output using outputVia() makes sure that the preamble is not written in the middle of the global log.

The end is written by the DebugFinalizeOutput() routine which is called when a logger is disposed. It tries to close the open blocks (only thise generate tags that span more than one message), and finally writes the suffix (like a closing </html>. This routine tries to play nice even if the block hierarchy is not correct, but might still fail in some cases.

Usually, a correct end is nice but not needed - the most interesting logs are those that abruptly end due to a crash anyway :-)

Best Regards,

Lukas Zeller (l...@synthesis.ch)
-
Synthesis AG, SyncML Solutions  & Sustainable Software Concepts
i...@synthesis.ch, http://www.synthesis.ch



_______________________________________________
SyncEvolution mailing list
SyncEvolution@moblin.org
https://lists.moblin.org/mailman/listinfo/syncevolution

Reply via email to