24#define SFLOG_ERRORS SFLOG_ERROR
34#define NDK_UNINITIALIZED -11
35#define NDK_INIT_FAILED -20
36#define NDK_SKIP_INIT 105
39#define NDK_MISSING_CONF -100
40#define NDK_BAD_CONF -101
41#define NDK_CONF_DATAPATH_INVALID -102
42#define NDK_DATAPATH_INVALID -103
45#define NDK_MISSING_APP_ARG -106
46#define NDK_LOGFILE_INUSE -105
48#define NDK_INVALID_ARG -300
49#define NDK_LENGTH_ERROR -301
50#define NDK_INVALID_VALUE -302
51#define NDK_INVALID_TOKEN -303
63#define SFLOG_MSG(msg, LEVEL, N) \
64 SFLOG_LOGMSG##N(SFLOG_##LEVEL, __FILE__, __FUNCTION__, __FUNCSIG__, __LINE__, msg)
76#define SFLOG_MSG_CHECK(condition, msg, LEVEL,N) \
77 if(!condition){SFLOG_MSG(msg,LEVEL,N);}
88#define SFLOG_MSG_W(msg,LEVEL) SFLOG_MSG(msg, LEVEL, W)
99#define SFLOG_MSG_CHECK_W(condition, msg, LEVEL) \
100 SFLOG_MSG_CHECK(condition, msg, LEVEL,W)
103#define SFLOG_MSG_DEBUG_W(msg) SFLOG_MSG(msg,DEBUG,W)
104#define SFLOG_MSG_INFO_W(msg) SFLOG_MSG(msg,INFO,W)
105#define SFLOG_MSG_WARN_W(msg) SFLOG_MSG(msg,WARN,W)
106#define SFLOG_MSG_ERROR_W(msg) SFLOG_MSG(msg,ERRORS,W)
107#define SFLOG_MSG_FATAL_W(msg) SFLOG_MSG(msg,FATAL,W)
118#define SFLOG_MSG_A(msg, LEVEL) SFLOG_MSG(msg, LEVEL, A)
129#define SFLOG_MSG_CHECK_A(condition, msg, LEVEL) \
130 SFLOG_MSG_CHECK(condition, msg, LEVEL,A)
141#define SFLOG_MSG_DEBUG(msg) SFLOG_MSG_A(msg,DEBUG)
142#define SFLOG_MSG_INFO(msg) SFLOG_MSG_A(msg,INFO)
143#define SFLOG_MSG_WARN(msg) SFLOG_MSG_A(msg,WARN)
144#define SFLOG_MSG_ERROR(msg) SFLOG_MSG_A(msg,ERRORS)
145#define SFLOG_MSG_FATAL(msg) SFLOG_MSG_A(msg,FATAL)
181 size_t ulMaxFileSize,
182 unsigned int* uClientToken
215 size_t ulMaxFileSize,
216 unsigned int* uClientToken
225 #define SFLOG_INIT SFLOG_INITW
232 #define SFLOG_INIT SFLOG_INITW
342 #define SFLOG_LOGMSG SFLOG_LOGMSGW
349 #define SFLOG_LOGMSG SFLOG_LOGMSGA
int __stdcall SFLOG_LOGMSGA(int nLevel, LPCSTR szFilename, LPCSTR szFuncName, LPCSTR szFuncSig, int nLineNo, LPCSTR szMsg)
Log a narrow-character (i.e., ASCII) message.
int __stdcall SFLOG_SETLEVEL(unsigned int uClientToken, unsigned int nLevel)
set the new logging level in the SDK
int __stdcall SFLOG_INITA(LPCSTR szAppName, LPCSTR szLogDir, DWORD dwBackupFiles, size_t ulMaxFileSize, unsigned int *uClientToken)
Initialize the logging system for SDK. This is often the first API call that an application makes and...
int __stdcall SFLOG_INITW(LPCWSTR szAppName, LPCWSTR szLogDir, DWORD dwBackupFiles, size_t ulMaxFileSize, unsigned int *uClientToken)
Initialize the logging system for SDK. This is often the first API call that an application makes and...
int __stdcall SFLOG_SHUTDOWN(unsigned int uClientToken)
Shutdown and release resources allocated by logging system.
int __stdcall SFLOG_GETLEVEL(unsigned int *nLevel)
An alias which automatically selects the ANSI or Unicode version of this function based on the defini...
int __stdcall SFLOG_LOGMSGW(int nLevel, LPCSTR szFilename, LPCSTR szFuncName, LPCSTR szFuncSig, int nLineNo, LPCWSTR szMsg)
Log a wide-character (i.e., wchar_t*) message.