Go to the source code of this file.
|
typedef void(* | log_handler_t) (int lvl, const char *msg, va_list args, void *p) |
|
|
EXPORT void | base_get_log_handler (log_handler_t *handler, void **param) |
|
EXPORT void | base_set_log_handler (log_handler_t handler, void *param) |
|
EXPORT void | base_set_crash_handler (void(*handler)(const char *, va_list, void *), void *param) |
|
EXPORT void | blogva (int log_level, const char *format, va_list args) |
|
EXPORT void | blog (int log_level, const char *format,...) |
|
EXPORT void | bcrash (const char *format,...) |
|
§ FILE_LINE
#define FILE_LINE __FILE__ " (" S__LINE__ "): " |
§ INT_CUR_LINE
#define INT_CUR_LINE __LINE__ |
§ PRINTFATTR
#define PRINTFATTR |
( |
|
f, |
|
|
|
a |
|
) |
| __attribute__((__format__(__printf__, f, a))) |
§ S__LINE__
§ STRINGIFY
#define STRINGIFY |
( |
|
x | ) |
#x |
§ STRINGIFY_
§ log_handler_t
typedef void(* log_handler_t) (int lvl, const char *msg, va_list args, void *p) |
§ anonymous enum
Enumerator |
---|
LOG_ERROR | Use if there's a problem that can potentially affect the program, but isn't enough to require termination of the program.
Use in creation functions and core subsystem functions. Places that should definitely not fail.
|
LOG_WARNING | Use if a problem occurs that doesn't affect the program and is recoverable.
Use in places where where failure isn't entirely unexpected, and can be handled safely.
|
LOG_INFO | Informative essage to be displayed in the log.
|
LOG_DEBUG | Debug message to be used mostly by developers.
|
§ base_get_log_handler()
§ base_set_crash_handler()
EXPORT void base_set_crash_handler |
( |
void(*)(const char *, va_list, void *) |
handler, |
|
|
void * |
param |
|
) |
| |
§ base_set_log_handler()
§ bcrash()
EXPORT void bcrash |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
§ blog()
EXPORT void blog |
( |
int |
log_level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
§ blogva()
EXPORT void blogva |
( |
int |
log_level, |
|
|
const char * |
format, |
|
|
va_list |
args |
|
) |
| |