|
SphinxBase
5prealpha
|
Somewhat antiquated logging and error interface. More...
#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <errno.h>#include "sphinxbase/err.h"#include "sphinxbase/prim_type.h"#include "sphinxbase/filename.h"#include "sphinxbase/ckd_alloc.h"Go to the source code of this file.
Functions | |
| void | err_msg (err_lvl_t lvl, const char *path, long ln, const char *fmt,...) |
| void | err_msg_system (err_lvl_t lvl, const char *path, long ln, const char *fmt,...) |
| void | err_logfp_cb (void *user_data, err_lvl_t lvl, const char *fmt,...) |
| int | err_set_logfile (const char *path) |
| Append all log messages to a given file. More... | |
| void | err_set_logfp (FILE *stream) |
| Direct all logging to a given filehandle if default logfp callback is set. More... | |
| FILE * | err_get_logfp (void) |
| Get the current logging filehandle. More... | |
| void | err_set_callback (err_cb_f cb, void *user_data) |
| Sets function to output error messages. More... | |
Somewhat antiquated logging and error interface.
Definition in file err.c.
| FILE* err_get_logfp | ( | void | ) |
| void err_set_callback | ( | err_cb_f | callback, |
| void * | user_data | ||
| ) |
| int err_set_logfile | ( | const char * | path | ) |