Re: GLib's Logging
- From: Jonh Wendell <jwendell gnome org>
- To: Andrew Cowie <andrew operationaldynamics com>
- Cc: gtk-list gnome org
- Subject: Re: GLib's Logging
- Date: Fri, 28 Mar 2008 11:07:36 -0300
Em Sex, 2008-03-28 às 17:35 +1100, Andrew Cowie escreveu:
> Hey John. How you been?
Hi, Andrew! Thanks for your reply.
> On Wed, 2008-03-26 at 18:53 -0300, Jonh Wendell wrote:
> > I'm writing a library and want to print debug messages, by using
> > g_debug() macro. Is there a way to hide them by default, and let the
> > caller app show it by using g_set_handler()?
>
> You might try g_log_set_default_handler()
The problem is that this should be called at some point in
initialization of the program. I'm talking about a library.
We managed to fix this by adding an init() function in our library.
Cheers,
--
Jonh Wendell
www.bani.com.br
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]