
#ifndef _XYSDK_LOG_H_
#define _XYSDK_LOG_H_

#include "system/includes.h"

#define XY_LOG_LEVEL           (4)

#define XY_LOG_ERR_LEVEL       (1)
#define XY_LOG_WARN_LEVEL      (2)
#define XY_LOG_INFO_LEVEL      (3)
#define XY_LOG_DEBUG_LEVEL     (4)

#define XY_LOG_I(format, ...)   do { if (XY_LOG_LEVEL >= XY_LOG_INFO_LEVEL) printf("[XY_INFO] " format "\n", ##__VA_ARGS__); } while (0)
#define XY_LOG_W(format, ...)   do { if (XY_LOG_LEVEL >= XY_LOG_WARN_LEVEL) printf("[XY_WARNING] " format "\n", ##__VA_ARGS__); } while (0)
#define XY_LOG_E(format, ...)   do { if (XY_LOG_LEVEL >= XY_LOG_ERR_LEVEL) printf("[XY_ERROR] " format "\n", ##__VA_ARGS__); } while (0)
#define XY_LOG_D(format, ...)   do { if (XY_LOG_LEVEL >= XY_LOG_DEBUG_LEVEL) printf("[XY_DEBUG] " format "\n", ##__VA_ARGS__); } while (0)




#endif /* _XYSDK_LOG_H_ */