Hello!
My goal since switching to the Synthesis engine was to have one single
log file again. There are other ideas for logging improvements, but the
single log is the most important one:
http://bugzilla.moblin.org/show_bug.cgi?id=3474
I've been dragging my feet a bit with it and I knew it would be kind of
complicated, but now I have something which works. Beware, I didn't say
it is nice ;-}
It's also not final yet, but if possible, I'd like to get it done this
week. I've pushed the code into the moblin.org "logging" branch of
libsynthesis and SyncEvolution.
Lukas, Beat, can you have a look at the code and tell me whether this is
okay in principle and what might have to be changed to make it suitable
for upstream?
The main issues I see are:
* had to use a global variable to pass information
(TSyncAppBase::fGlobalAppLoggerP); ideally I'd pass the handle
for the first engine (with the active logger) to the creator of
the second engine (the one with the datastores)
* can only log plain text via DB_DebugPuts_Func(); I'd like to
include more information (severity level, source file/line)
--
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