[Bug 41528] Provide logging interface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 7 04:39:45 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=41528

Marc-Andre Lureau <marcandre.lureau at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

--- Comment #8 from Marc-Andre Lureau <marcandre.lureau at gmail.com> 2012-01-07 04:39:45 PST ---
(In reply to comment #7)
> OK, so does that mean that app that uses spice-gtk can e.g. take message about
> insertion of smartcard that will be forwarded to user via libnotivy event but
> ignore everything else? If so, I'm fine with RESOLVED/FIXED.

Even better, there is a signal for that event:
SpiceSmartcardManager::card-inserted.

otherwise, it is a simple as having a log handler that filter messages like
this:

if (domain == "GSpice" && strstr (message, "smartcard: card-inserted"))
  log notify (domain, level, message)

It would be interesting to introduce more domains, so that you don't need to
filter by message, for example:

GSpiceSmartcard, GSpiceDisplay, GSpiceAudio etc.. 

But I am not fond of this idea, since it wouldn't be terribly helpful (to
understand what's going on, you'd need several domains), and will probably
match the filename that you can already filter on. Furthermore, the amount of
messages isn't that big, so it seems better to me to just log it all from
GSpice.

But if there is a need, we could do that.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the spice-bugs mailing list