[virt-tools-list] [PATCH virt-viewer] win32: use Windows Event Log for glib logging

Daniel P. Berrange berrange at redhat.com
Fri Jan 25 16:04:12 UTC 2013


On Wed, Jan 23, 2013 at 12:05:29AM +0100, Marc-André Lureau wrote:
> Windows has a proper service for logging events and messages in a
> structured way. It does many nice things, and "Event Viewer" allows
> UI browsing / filtering of messages etc..
> 
> Note we don't really use any category or event ID but solely log level
> and string. To make the Event Viewer happy, we still register a string
> for our event. And MinGW doesn't seem to like linking to multiple
> resource objects (apparently takes the first one and ignores the
> rest?)

I kind of think that integration with the Windows event log ought
to be provided by GLib itself, so that any app can make use of it,
instead of requiring every app to re-write the same platform specific
code. Can't you look at submitting a patch to GLib instead ?

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list