Kore 3
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1#ifndef KORE_LOG_HEADER
2#define KORE_LOG_HEADER
3
4#include <kore3/global.h>
5
6#include <stdarg.h>
7
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
25typedef enum { KORE_LOG_LEVEL_INFO, KORE_LOG_LEVEL_WARNING, KORE_LOG_LEVEL_ERROR } kore_log_level;
26
42KORE_FUNC void kore_log(kore_log_level log_level, const char *format, ...);
43
56KORE_FUNC void kore_log_args(kore_log_level log_level, const char *format, va_list args);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KORE_FUNC void kore_log(kore_log_level log_level, const char *format,...)
Logging function similar to printf including some system-specific bonuses.
kore_log_level
Pass this to kore_log or kore_log_args.
Definition log.h:25
KORE_FUNC void kore_log_args(kore_log_level log_level, const char *format, va_list args)
Equivalent to kore_log but uses a va_list parameter.