4 * Copyright (c) the Notion team 2013.
6 * See the included file LICENSE for details.
9 #ifndef NOTION_IONCORE_LOG_H
12 DEBUG
= 0, /** Not usually shown, but can be useful for debugging */
13 INFO
, /** Usually shown, does not necessarily indicate an error */
14 WARN
, /** Usually shown, indicates a likely but non-fatal misconfiguration/error */
15 ERROR
/** Shown, indicates an error */
25 /** When logging from C code, don't use this function directly, use the LOG macro instead */
26 extern void log_message(LogLevel level
, LogCategory category
, const char *file
, const int line
, const char* function
, const char* message
, ...);
28 #if __STDC_VERSION__ >= 199901L
29 #define LOG(level, category, ...) log_message(level, category, __FILE__, __LINE__, __func__, __VA_ARGS__)
31 extern void LOG(LogLevel level
, LogCategory category
, const char* message
, ...);
34 #endif /*NOTION_IONCORE_LOG_H*/