00001
00002
00003
00004
00005 #ifndef _U_LOGPRV_H_
00006 #define _U_LOGPRV_H_
00007 #include "libu_conf.h"
00008
00009 #include <stdarg.h>
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014
00015 #define u_log_write(fac, lev, ctx, ...) \
00016 u_log_write_ex(fac, lev, ctx, __FILE__, __LINE__,__FUNCTION__, __VA_ARGS__)
00017
00031 int u_log_write_ex(int fac, int lev, int ctx, const char* file, int line,
00032 const char *func, const char* fmt, ...);
00033
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037
00038 #endif