k_log.h File Reference
System logging header. More...
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | LOG_LEVEL LOG_INFO |
Default log level define. More... | |
#define | LOG(level, ...) if (level <= LOG_LEVEL) log_write(level, __VA_ARGS__) |
Log message if level <= LOG_LEVEL. More... | |
#define | log_write(level, ...) printf(__VA_ARGS__) |
Default log_write function, just maps to printf. More... | |
#define | LOG_ERROR(...) LOG(LOG_ERROR, __VA_ARGS__) |
logging convenience defines More... | |
#define | LOG_WARNING(...) LOG(LOG_WARNING, __VA_ARGS__) |
#define | LOG_INFO(...) LOG(LOG_INFO, __VA_ARGS__) |
#define | LOG_DEBUG(...) LOG(LOG_DEBUG, __VA_ARGS__) |
Enumerations | |
enum | { LOG_NONE, LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_DEBUG, LOG_ALL } |
defined log levels More... | |