#ifndef __XLOG_H__ #define __XLOG_H__ #pragma once #include "config.h" #include #ifdef __cplusplus extern "C" { #endif #define XLOG_LEVEL_ALL 0 #define XLOG_LEVEL_TRACE 1 #define XLOG_LEVEL_DEBUG 2 #define XLOG_LEVEL_INFO 3 #define XLOG_LEVEL_WARN 4 #define XLOG_LEVEL_ERROR 5 #define XLOG_LEVEL_FATAL 6 #define XLOG_LEVEL_NONE 7 TOOLKIT_API int xlog_add_logger(const char *name, const char *type, ...); TOOLKIT_API int xlog_remove_logger(const char *name); TOOLKIT_API int xlog_init(const char *inifile); TOOLKIT_API int xlog_term(); TOOLKIT_API int xlog_log(const char *inst, int level, const char *str); TOOLKIT_API int xlog_log_v(const char *inst, int level, const char *fmt, va_list arg); #ifdef __cplusplus } // extern "C" { #endif #endif //__XLOG_H__