|
SphinxBase
0.6
|
Somewhat antiquated logging and error interface. More...
#include "config.h"#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <errno.h>#include "sphinxbase/err.h"Go to the source code of this file.
Functions | |
| int | err_set_debug_level (int level) |
| Set debugging verbosity level. More... | |
| int | err_get_debug_level (void) |
| Get debugging verbosity level. More... | |
| FILE * | err_get_logfp (void) |
| Get the current logging filehandle. More... | |
| FILE * | err_set_logfp (FILE *newfp) |
| Direct all logging to a given filehandle. More... | |
| int | err_set_logfile (char const *file) |
| Append all log messages to a given file. More... | |
| void | _E__pr_info_header_wofn (char const *msg) |
| void | _E__pr_header (char const *f, long ln, char const *msg) |
| void | _E__pr_info_header (char const *f, long ln, char const *msg) |
| void | _E__pr_warn (char const *fmt,...) |
| void | _E__pr_info (char const *fmt,...) |
| void | _E__die_error (char const *fmt,...) |
| void | _E__fatal_sys_error (char const *fmt,...) |
| void | _E__sys_error (char const *fmt,...) |
| void | _E__abort_error (char const *fmt,...) |
Variables | |
| FILE * | logfp = NULL |
Somewhat antiquated logging and error interface.
Definition in file err.c.
| int err_get_debug_level | ( | void | ) |
| FILE* err_get_logfp | ( | void | ) |
Get the current logging filehandle.
Definition at line 157 of file err.c.
Referenced by err_set_logfp().
| int err_set_debug_level | ( | int | level | ) |
| int err_set_logfile | ( | char const * | file | ) |
| FILE* err_set_logfp | ( | FILE * | logfp | ) |
Direct all logging to a given filehandle.
| logfp | Filehandle to send log messages to, or NULL to disable logging. |
Definition at line 179 of file err.c.
References err_get_logfp().