From: Dennis S. <sy...@yo...> - 2004-10-02 08:46:15
|
On Fri, 2004-10-01 at 20:51 -0300, Duilio Javier Protti wrote: > I think the best way to do that is to add an API function which > let the user to set a handler for outputting messages, which > overrides the default behavior, like glib does. In glib you > have i.e g_message() with a default behavior, but you can override > it calling g_set_message_handler() with a function that receives the > message string and returns nothing. > > This approach is very powerfull because you can process and redirect > output whatever you like. Specially on GUI applications, you can > redirect messages to some GUI widget. That sounds really good, doing this together with verboseness level API I assume ? Cheers, Dennis |