[Vala] Fwd: Debug logging
- From: Sam Thursfield <sam thursfield codethink co uk>
- To: vala-list gnome org
- Subject: [Vala] Fwd: Debug logging
- Date: Tue, 18 Oct 2011 18:20:31 +0100
Hi
Has anyone yet solved the problem of how to access macro-based C library
logging systems from Vala? This is important when writing plugins for
libraries like Grilo, GStreamer and even GLib-based libraries.
The problem is that defining log domains/categories is generally done
with C macros. Is the only solution to actually build some level of log
support into Vala itself, so that the .vapi file could define how to set
a log domain and the namespace could have a [LogDomain "Foo"] attribute
or some such?
I notice in gstreamer-0.10.vapi there is a DebugCategory class wrapping
the macros to generate a log category and output messages in that
category. There doesn't seem to be any way to use it, however, because
there's no way to construct a DebugCategory instance.
Thanks
Sam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]