24inline int get_level() {
44inline void dbg(
const char *fmt, ...) {
47 ecs_logv(1, fmt, args);
52inline void trace(
const char *fmt, ...) {
55 ecs_logv(0, fmt, args);
60inline void warn(
const char *fmt, ...) {
63 ecs_logv(-2, fmt, args);
68inline void err(
const char *fmt, ...) {
71 ecs_logv(-3, fmt, args);
76inline void push(
const char *fmt, ...) {
79 ecs_logv(0, fmt, args);
FLECS_API bool ecs_log_enable_colors(bool enabled)
Enable/disable tracing with colors.
FLECS_API int ecs_log_get_level(void)
Get current log level.
FLECS_API int ecs_log_set_level(int level)
Enable or disable log.
FLECS_API bool ecs_log_enable_timestamp(bool enabled)
Enable/disable logging timestamp.
FLECS_API bool ecs_log_enable_timedelta(bool enabled)
Enable/disable logging time since last log.
void enable_colors(bool enabled=true)
Enable colors in logging.
void enable_timedelta(bool enabled=true)
Enable time delta in logging.
void push()
Increase log indentation.
void set_level(int level)
Set log level.
void trace(const char *fmt,...)
Trace (level 0)
void err(const char *fmt,...)
Trace (level -3)
void warn(const char *fmt,...)
Trace (level -2)
void pop()
Increase log indentation.
void enable_timestamp(bool enabled=true)
Enable timestamps in logging.
void dbg(const char *fmt,...)
Debug trace (level 1)