AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Macros | Functions
logger.h File Reference

Logging macros. More...

#include <glib.h>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG(level, msg,...)   _log_wrap(level, "[" LOG_TAG "] " msg, ##__VA_ARGS__)
 Log with user-specified GLogLevelFlags. More...
 
#define LOGD(...)   LOG(G_LOG_LEVEL_DEBUG, ##__VA_ARGS__)
 Log at DEBUG level. More...
 
#define LOGI(...)   LOG(G_LOG_LEVEL_INFO, ##__VA_ARGS__)
 Log at INFO level. More...
 
#define LOGM(...)   LOG(G_LOG_LEVEL_MESSAGE, ##__VA_ARGS__)
 Log at MESSAGE level. More...
 
#define LOGW(...)   LOG(G_LOG_LEVEL_WARNING, ##__VA_ARGS__)
 Log at WARNING level. More...
 
#define LOGC(...)   LOG(G_LOG_LEVEL_CRITICAL, ##__VA_ARGS__)
 Log at CRITICAL level. More...
 
#define LOGE(...)   LOG(G_LOG_LEVEL_ERROR, ##__VA_ARGS__)
 Log at ERROR level (makes the application abort) More...
 

Functions

void init_logger ()
 
void _log_wrap (GLogLevelFlags level, const char *fmt,...)
 

Detailed Description

Logging macros.

Definition in file logger.h.

Macro Definition Documentation

#define LOG (   level,
  msg,
  ... 
)    _log_wrap(level, "[" LOG_TAG "] " msg, ##__VA_ARGS__)

Log with user-specified GLogLevelFlags.

Parameters
levellog levels
msgformat string
...format string args

Definition at line 19 of file logger.h.

#define LOGC (   ...)    LOG(G_LOG_LEVEL_CRITICAL, ##__VA_ARGS__)

Log at CRITICAL level.

Definition at line 29 of file logger.h.

#define LOGD (   ...)    LOG(G_LOG_LEVEL_DEBUG, ##__VA_ARGS__)

Log at DEBUG level.

Definition at line 21 of file logger.h.

#define LOGE (   ...)    LOG(G_LOG_LEVEL_ERROR, ##__VA_ARGS__)

Log at ERROR level (makes the application abort)

Definition at line 31 of file logger.h.

#define LOGI (   ...)    LOG(G_LOG_LEVEL_INFO, ##__VA_ARGS__)

Log at INFO level.

Definition at line 23 of file logger.h.

#define LOGM (   ...)    LOG(G_LOG_LEVEL_MESSAGE, ##__VA_ARGS__)

Log at MESSAGE level.

Definition at line 25 of file logger.h.

#define LOGW (   ...)    LOG(G_LOG_LEVEL_WARNING, ##__VA_ARGS__)

Log at WARNING level.

Definition at line 27 of file logger.h.

Function Documentation

void _log_wrap ( GLogLevelFlags  level,
const char *  fmt,
  ... 
)

Definition at line 12 of file logger.c.

void init_logger ( )

Setup the log handler

Definition at line 76 of file logger.c.

Here is the caller graph for this function: