95 do { n_log_message (N_LOG_LEVEL_ENTER, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
99 do { n_log_message (N_LOG_LEVEL_DEBUG, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
103 do { n_log_message (N_LOG_LEVEL_INFO, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
106#define N_WARNING(...) \
107 do { n_log_message (N_LOG_LEVEL_WARNING, (const char*) __FUNCTION__, __LINE__, __VA_ARGS__); } while(0)
110#define N_ERROR(...) \
111 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:45
@ N_LOG_LEVEL_ENTER
Function enter messages.
Definition log.h:47
@ N_LOG_LEVEL_ERROR
Error messages.
Definition log.h:55
@ N_LOG_LEVEL_NONE
Suppress logging.
Definition log.h:57
@ N_LOG_LEVEL_INFO
Info messages.
Definition log.h:51
@ N_LOG_LEVEL_DEBUG
Debug messages.
Definition log.h:49
@ N_LOG_LEVEL_WARNING
Warning messages.
Definition log.h:53
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:29
@ N_LOG_TARGET_NONE
Suppress logging.
Definition log.h:31
@ N_LOG_TARGET_STDERR
Direct logging to stderr.
Definition log.h:34
@ N_LOG_TARGET_SYSLOG
Direct logging to syslog.
Definition log.h:40
@ N_LOG_TARGET_STDOUT
Direct logging to stdout.
Definition log.h:37