Re: How to log error messages in a file for Glib



You can also set your own log handler:

  http://developer.gnome.org/doc/API/2.0/glib/glib-Message-Logging.html#g-log-set-handler

And capture message to a file, send them to a dialog box, whatever.

On 3/17/06, Daniel Espinosa <esodan gmail com> wrote:
> Run your program from the consol, and in the command line write the
> following:
>
>  user$ yourprogram > filelog
>
> 2006/3/17, Sumit Kumar Jain <sumitskj_20 yahoo com>:
> >
>  how can we log error messages for Glivusing error function like g_error()
> to a file and not printed to the console?



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