91 do { n_log_message (N_LOG_LEVEL_ENTER, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
95 do { n_log_message (N_LOG_LEVEL_DEBUG, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
99 do { n_log_message (N_LOG_LEVEL_INFO, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
102#define N_WARNING(...) \
103 do { n_log_message (N_LOG_LEVEL_WARNING, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
106#define N_ERROR(...) \
107 do { n_log_message (N_LOG_LEVEL_ERROR, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
void n_log_message(NLogLevel level, const char *function, int line, const char *fmt,...)
Log message.
void n_log_initialize(NLogLevel level)
Initialize logging with selected level.
NLogLevel n_log_get_level()
Get current logging level.
_NLogLevel
Logging levels.
Definition log.h:41
@ N_LOG_LEVEL_ENTER
Function enter messages.
Definition log.h:43
@ N_LOG_LEVEL_ERROR
Error messages.
Definition log.h:51
@ N_LOG_LEVEL_NONE
Suppress logging.
Definition log.h:53
@ N_LOG_LEVEL_INFO
Info messages.
Definition log.h:47
@ N_LOG_LEVEL_DEBUG
Debug messages.
Definition log.h:45
@ N_LOG_LEVEL_WARNING
Warning messages.
Definition log.h:49
enum _NLogTarget NLogTarget
enum _NLogLevel NLogLevel
Logging levels.
void n_log_set_level(NLogLevel level)
Change logging level.
NLogTarget n_log_get_target()
Get current log target.
void n_log_set_target(NLogTarget target)
Select log target.
_NLogTarget
Definition log.h:28
@ N_LOG_TARGET_NONE
Suppress logging.
Definition log.h:30
@ N_LOG_TARGET_SYSLOG
Direct logging to syslog.
Definition log.h:36
@ N_LOG_TARGET_STDOUT
Direct logging to stdout.
Definition log.h:33