Hello! In SyncEvolution, we used to use one Synthesis engine instance throughout a sync session. It was initialized twice, first with a minimal XML config for logging, then again with a full config including datastores.
Since adding support for server alerted syncs, this approach no longer works because we have to choose between server and client engine when instantiating the engine and cannot change this later on. After a short period where we had two engines active in parallel, accessing the same files (didn't work with latest engine, writing to binfiles conflicted), we now instantiate one engine for logging, destruct it, then construct the final engine. The resulting log is okay, but not perfect. It contains the <html><head> "<body><h2>Start of log - Synthesis SyncML Engine 3.3.0.0</h2>" preamble twice. The indention of the second engine is two deep. I thought HTML logs were kind of appendable? Would it be possible to not write the header when the log file is in append mode and not empty? Regarding the indention, the log from the first engine ends with: <li><i>[2009-11-25 08:22:34.528]</i> <span class="plugin">##### enginemodulebase (LNK): Disconnect</span></li> Not writing the header again would avoid on opening <ul>, so the indention would be right, too. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. _______________________________________________ os-libsynthesis mailing list [email protected] http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis
