Controlling log level in glib application



Hi,

Is there a way to control what level of logging is shown when a glib
application is run?

For instance, I don't want to change my source code to remove all the
g_debug calls for the release version. Setting a compile flag would be
okay, as would an API call to set what level is shown.

Do I have to implement my own log function for this? (g_log_set_handler)

Dave



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]