6#ifndef __CWIST_LOGGER_H__
7#define __CWIST_LOGGER_H__
void cwist_logger_warn(cwist_logger *log, const char *fmt,...)
Write a warning message.
cwist_logger * cwist_logger_create(const char *name)
Create a logger.
void cwist_logger_error(cwist_logger *log, const char *fmt,...)
Write an error message.
void cwist_logger_log(cwist_logger *log, cwist_log_level_t level, const char *fmt,...)
Write a log message.
void cwist_log_async_flush(void)
Block until every line queued so far has been written.
bool cwist_log_async_start(size_t buffer_bytes)
Start the background log writer.
void cwist_logger_set_colors(cwist_logger *log, bool enabled)
Enable or disable colored output.
void cwist_log_async_stop(void)
Write out queued lines, stop the writer and return to synchronous output.
bool cwist_log_async_active(void)
Whether the background log writer is active.
void cwist_logger_info(cwist_logger *log, const char *fmt,...)
Write an info message.
void cwist_logger_set_level(cwist_logger *log, cwist_log_level_t level)
Set the minimum log level.
void cwist_logger_destroy(cwist_logger *log)
Destroy a logger.
void cwist_logger_debug(cwist_logger *log, const char *fmt,...)
Write a debug message.