From: Dennis S. <sy...@yo...> - 2004-10-02 09:12:24
|
On Sat, 2004-10-02 at 00:43 -0300, Duilio Javier Protti wrote: > I have implemented visual_log_set_verboseness() on > libvisual core. We can set these: > > The default level is VISUAL_LOG_VERBOSENESS_MEDIUM. (Dennis, do you > think it shoul be LOW?). > > Similar handlers can be set for warning/critical/error messages. I'm very happy with the system you implemented, I've got 1 comment and 1 question. First, there is no enum yet to entirely disable visual_log output, I think that VERBOSENESS_NONE should be really none verbose. One more question, I really like the message handle system, I wonder if it would be possible to also have a 'all messages' handler that can be optionally set. This would be nice for an app that just wants to redirect ALL output. Another thing is that the handler set function should accept a void *priv, if the app wants the handler function to handle a private. Let's say a GtkWidget in which text has to be printed. Thanks for implementing it, Dennis |