* implement automatic log file cleanup, document it
This commit is contained in:
@ -26,17 +26,21 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define MU_MAX_LOG_FILE_SIZE 1000 * 1000 /* 1 MB (SI units) */
|
||||
|
||||
/**
|
||||
* write logging information to a log file
|
||||
*
|
||||
* @param muhome the mu home directory
|
||||
* @param append append to logfile, instead of overwriting
|
||||
* @param backup if TRUE and size of log file > MU_MAX_LOG_FILE_SIZE, move
|
||||
* the log file to <log file>.old and start a new one. The .old file will overwrite
|
||||
* existing files of that name
|
||||
* @param quiet don't log non-errors to stdout/stderr
|
||||
* @param debug include debug-level information.
|
||||
*
|
||||
* @return TRUE if initialization succeeds, FALSE otherwise
|
||||
*/
|
||||
gboolean mu_log_init (const char* muhome, gboolean append,
|
||||
gboolean mu_log_init (const char* muhome, gboolean backup,
|
||||
gboolean quiet, gboolean debug);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user