* mu-log: set the default handler, fixes logging

This commit is contained in:
Dirk-Jan C. Binnema
2009-12-05 16:00:23 +02:00
parent 63a2680873
commit 3f169f72aa
2 changed files with 36 additions and 38 deletions

View File

@ -24,6 +24,18 @@
/* mu log is the global logging system */
/**
* write logging information to a log file
*
* @param muhome the mu home directory
* @param append append to logfile, instead of overwriting
* @param debug include debug-level information.
*
* @return TRUE if initialization succeeds, FALSE otherwise
*/
gboolean mu_log_init (const char* muhome, gboolean append,
gboolean debug);
/**
* write logging information to a file descriptor
*
@ -36,17 +48,6 @@
gboolean mu_log_init_with_fd (int fd, gboolean doclose, gboolean debug);
/**
* write logging information to a file descriptor
*
* @param a filename to log to
* @param append append to logfile, instead of overwriting
* @param debug include debug-level information.
*
* @return TRUE if initialization succeeds, FALSE otherwise
*/
gboolean mu_log_init_with_file (const char* file, gboolean append,
gboolean debug);
/**
* be absolutely silent, except for runtime errors, which will be