add
This commit is contained in:
337
Client/Client/GlobalScript/Log/ServerLog.h
Normal file
337
Client/Client/GlobalScript/Log/ServerLog.h
Normal file
@@ -0,0 +1,337 @@
|
|||||||
|
#ifndef _SERVER_LOG_DEFINE_H_
|
||||||
|
#define _SERVER_LOG_DEFINE_H_
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------------------
|
||||||
|
// <20>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
#define _SOURCE_LEVEL_MINIMUM 0 // Only output errors
|
||||||
|
#define _SOURCE_LEVEL_RELEASE 1 // Normal release mode
|
||||||
|
#define _SOURCE_LEVEL_BETA 2 // Normal beta season mode
|
||||||
|
#define _SOURCE_LEVEL_DEBUG 3 // Output mostly
|
||||||
|
#define _SOURCE_LEVEL_FULL 4 // Output fully
|
||||||
|
#define _SOURCE_LEVEL_NONE 5 // DO NOT OUTPUT
|
||||||
|
|
||||||
|
#define _SRCFILE_LEVEL _SOURCE_LEVEL_NONE
|
||||||
|
|
||||||
|
/*
|
||||||
|
#ifndef _SRCFILE_LEVEL // <20>α<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD> <20>ִ<EFBFBD><D6B4><EFBFBD> Ȯ<><C8AE>
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#define _SRCFILE_LEVEL _SOURCE_LEVEL_FULL
|
||||||
|
#else
|
||||||
|
#define _SRCFILE_LEVEL _SOURCE_LEVEL_FULL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Function, File, Line<6E><65> <20><><EFBFBD>ڷ<EFBFBD> <20>ѱ<EFBFBD><D1B1><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ũ<EFBFBD><C5A9>.
|
||||||
|
#define LOG_FFL __FUNCTION__, __FILE__, __LINE__
|
||||||
|
|
||||||
|
|
||||||
|
#if (_SRCFILE_LEVEL == _SOURCE_LEVEL_MINIMUM)
|
||||||
|
#define USE_LOG_SYSERR
|
||||||
|
#define USE_LOG_ERROR
|
||||||
|
#define USE_LOG_RULE
|
||||||
|
#define USE_LOG_INFO
|
||||||
|
#elif (_SRCFILE_LEVEL == _SOURCE_LEVEL_RELEASE)
|
||||||
|
#define USE_LOG_SYSERR
|
||||||
|
#define USE_LOG_ERROR
|
||||||
|
#define USE_LOG_WARN
|
||||||
|
#define USE_LOG_INFO
|
||||||
|
#define USE_LOG_RULE
|
||||||
|
#elif (_SRCFILE_LEVEL == _SOURCE_LEVEL_BETA)
|
||||||
|
#define USE_LOG_SYSERR
|
||||||
|
#define USE_LOG_ERROR
|
||||||
|
#define USE_LOG_DEBUG
|
||||||
|
#define USE_LOG_WARN
|
||||||
|
#define USE_LOG_DUMP
|
||||||
|
#define USE_LOG_INFO
|
||||||
|
#define USE_LOG_RULE
|
||||||
|
#define USE_LOG_STAT
|
||||||
|
#elif (_SRCFILE_LEVEL == _SOURCE_LEVEL_DEBUG)
|
||||||
|
#define USE_LOG_SYSERR
|
||||||
|
#define USE_LOG_ERROR
|
||||||
|
#define USE_LOG_DEBUG
|
||||||
|
#define USE_LOG_WARN
|
||||||
|
#define USE_LOG_DUMP
|
||||||
|
#define USE_LOG_INFO
|
||||||
|
#define USE_LOG_RULE
|
||||||
|
#define USE_LOG_STAT
|
||||||
|
#elif (_SRCFILE_LEVEL == _SOURCE_LEVEL_FULL)
|
||||||
|
#define USE_LOG_NORMAL
|
||||||
|
#define USE_LOG_DETAIL
|
||||||
|
#define USE_LOG_SYSERR
|
||||||
|
#define USE_LOG_ERROR
|
||||||
|
#define USE_LOG_DEBUG
|
||||||
|
#define USE_LOG_WARN
|
||||||
|
#define USE_LOG_DUMP
|
||||||
|
#define USE_LOG_INFO
|
||||||
|
#define USE_LOG_RULE
|
||||||
|
#define USE_LOG_STAT
|
||||||
|
#elif (_SRCFILE_LEVEL == _SOURCE_LEVEL_NONE)
|
||||||
|
|
||||||
|
#undef USE_LOG_NORMAL
|
||||||
|
#undef USE_LOG_DETAIL
|
||||||
|
#undef USE_LOG_SYSERR
|
||||||
|
#undef USE_LOG_ERROR
|
||||||
|
#undef USE_LOG_DEBUG
|
||||||
|
#undef USE_LOG_WARN
|
||||||
|
#undef USE_LOG_DUMP
|
||||||
|
#undef USE_LOG_INFO
|
||||||
|
#undef USE_LOG_RULE
|
||||||
|
#undef USE_LOG_STAT
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
enum LOG_TYPE
|
||||||
|
{
|
||||||
|
LOG_NORMAL, // <20>Ϲ<EFBFBD> <20>α<EFBFBD> (Ŭ<><C5AC><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>)
|
||||||
|
LOG_RULE, // <20> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
LOG_INFO, // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
|
||||||
|
LOG_DETAIL, // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
LOG_SYSERR, // <20>ý<EFBFBD><C3BD><EFBFBD> <20>Լ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
LOG_ERROR, // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
LOG_DEBUG, // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
LOG_WARN, // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>α<EFBFBD>
|
||||||
|
|
||||||
|
MAX_LOG_TYPE
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------------------
|
||||||
|
// Simple Log Type
|
||||||
|
|
||||||
|
#ifdef USE_LOG_NORMAL
|
||||||
|
#define NORLOG(x) x
|
||||||
|
#define NORLOG0(LogInstance, szString) LogInstance.SimpleLog(LOG_NORMAL, szString)
|
||||||
|
#define NORLOG1(LogInstance, szFormat, arg1) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1)
|
||||||
|
#define NORLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2)
|
||||||
|
#define NORLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3)
|
||||||
|
#define NORLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define NORLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define NORLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define NORLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define NORLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define NORLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.SimpleLog(LOG_NORMAL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define NORLOG(x) (void*)0
|
||||||
|
#define NORLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define NORLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define NORLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define NORLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define NORLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define NORLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define NORLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define NORLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define NORLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define NORLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_INFO
|
||||||
|
#define INFLOG(x) x
|
||||||
|
#define INFLOG0(LogInstance, szString) LogInstance.SimpleLog(LOG_INFO, szString)
|
||||||
|
#define INFLOG1(LogInstance, szFormat, arg1) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1)
|
||||||
|
#define INFLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2)
|
||||||
|
#define INFLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3)
|
||||||
|
#define INFLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define INFLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define INFLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define INFLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define INFLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define INFLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.SimpleLog(LOG_INFO, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define INFLOG(x) (void*)0
|
||||||
|
#define INFLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define INFLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define INFLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define INFLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define INFLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define INFLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define INFLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define INFLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define INFLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define INFLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_RULE
|
||||||
|
#define RULLOG(x) x
|
||||||
|
#define RULLOG0(LogInstance, szString) LogInstance.SimpleLog(LOG_RULE, szString)
|
||||||
|
#define RULLOG1(LogInstance, szFormat, arg1) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1)
|
||||||
|
#define RULLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2)
|
||||||
|
#define RULLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3)
|
||||||
|
#define RULLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define RULLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define RULLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define RULLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define RULLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define RULLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.SimpleLog(LOG_RULE, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define RULLOG(x) (void*)0
|
||||||
|
#define RULLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define RULLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define RULLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define RULLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define RULLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define RULLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define RULLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define RULLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define RULLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define RULLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------------------
|
||||||
|
// Detail Log Type
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_DETAIL
|
||||||
|
#define DETLOG(x) x
|
||||||
|
#define DETLOG0(LogInstance, szString) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szString)
|
||||||
|
#define DETLOG1(LogInstance, szFormat, arg1) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1)
|
||||||
|
#define DETLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2)
|
||||||
|
#define DETLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3)
|
||||||
|
#define DETLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define DETLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define DETLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define DETLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define DETLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define DETLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#define DETLOG10(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) LogInstance.DetailLog(LOG_DETAIL, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
|
||||||
|
#else
|
||||||
|
#define DETLOG(x) (void*)0
|
||||||
|
#define DETLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define DETLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define DETLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define DETLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define DETLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define DETLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define DETLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define DETLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define DETLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define DETLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#define DETLOG10(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_SYSERR
|
||||||
|
#define SERLOG(x) x
|
||||||
|
#define SERLOG0(LogInstance, szString) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szString)
|
||||||
|
#define SERLOG1(LogInstance, szFormat, arg1) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1)
|
||||||
|
#define SERLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2)
|
||||||
|
#define SERLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3)
|
||||||
|
#define SERLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define SERLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define SERLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define SERLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define SERLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define SERLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.DetailLog(LOG_SYSERR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define SERLOG(x) (void*)0
|
||||||
|
#define SERLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define SERLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define SERLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define SERLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define SERLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define SERLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define SERLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define SERLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define SERLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define SERLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_ERROR
|
||||||
|
#define ERRLOG(x) x
|
||||||
|
#define ERRLOG0(LogInstance, szString) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szString)
|
||||||
|
#define ERRLOG1(LogInstance, szFormat, arg1) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1)
|
||||||
|
#define ERRLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2)
|
||||||
|
#define ERRLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3)
|
||||||
|
#define ERRLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define ERRLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define ERRLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define ERRLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define ERRLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define ERRLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.DetailLog(LOG_ERROR, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define ERRLOG(x) (void*)0
|
||||||
|
#define ERRLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define ERRLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define ERRLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define ERRLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define ERRLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define ERRLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define ERRLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define ERRLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define ERRLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define ERRLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_DEBUG
|
||||||
|
#define DBGLOG(x) x
|
||||||
|
#define DBGLOG0(LogInstance, szString) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szString)
|
||||||
|
#define DBGLOG1(LogInstance, szFormat, arg1) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1)
|
||||||
|
#define DBGLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2)
|
||||||
|
#define DBGLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3)
|
||||||
|
#define DBGLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define DBGLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define DBGLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define DBGLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define DBGLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define DBGLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.DetailLog(LOG_DEBUG, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define DBGLOG(x) (void*)0
|
||||||
|
#define DBGLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define DBGLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define DBGLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define DBGLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define DBGLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define DBGLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define DBGLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define DBGLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define DBGLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define DBGLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_LOG_WARN
|
||||||
|
#define WRNLOG(x) x
|
||||||
|
#define WRNLOG0(LogInstance, szString) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szString)
|
||||||
|
#define WRNLOG1(LogInstance, szFormat, arg1) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1)
|
||||||
|
#define WRNLOG2(LogInstance, szFormat, arg1, arg2) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2)
|
||||||
|
#define WRNLOG3(LogInstance, szFormat, arg1, arg2, arg3) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3)
|
||||||
|
#define WRNLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3, arg4)
|
||||||
|
#define WRNLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5)
|
||||||
|
#define WRNLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
|
#define WRNLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
|
||||||
|
#define WRNLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
|
||||||
|
#define WRNLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) LogInstance.DetailLog(LOG_WARN, LOG_FFL, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
|
||||||
|
#else
|
||||||
|
#define WRNLOG(x) (void*)0
|
||||||
|
#define WRNLOG0(LogInstance, szString) (void*)0
|
||||||
|
#define WRNLOG1(LogInstance, szFormat, arg1) (void*)0
|
||||||
|
#define WRNLOG2(LogInstance, szFormat, arg1, arg2) (void*)0
|
||||||
|
#define WRNLOG3(LogInstance, szFormat, arg1, arg2, arg3) (void*)0
|
||||||
|
#define WRNLOG4(LogInstance, szFormat, arg1, arg2, arg3, arg4) (void*)0
|
||||||
|
#define WRNLOG5(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5) (void*)0
|
||||||
|
#define WRNLOG6(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6) (void*)0
|
||||||
|
#define WRNLOG7(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (void*)0
|
||||||
|
#define WRNLOG8(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) (void*)0
|
||||||
|
#define WRNLOG9(LogInstance, szFormat, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) (void*)0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__linux__) || defined(i386) || defined(_WIN32)
|
||||||
|
#define VA_START(Argument, pFormat) va_start(Argument, pFormat)
|
||||||
|
#else
|
||||||
|
#define VA_START(Argument, pFormat) va_start(Argument)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
<AdditionalDependencies>ws2_32.lib;dsound.lib;eaxguid.lib;d3d8.lib;d3dx8.lib;dxguid.lib;dinput8.lib;shlwapi.lib;ole32.lib;wbemuuid.lib;winmm.lib;dxerr8.lib;odbc32.lib;odbccp32.lib;iphlpapi.lib;ijl15.lib;imm32.lib;../../Engine/SoundLib/vorbis_sdk/lib/ogg_static_d.lib;../../Engine/SoundLib/vorbis_sdk/lib/vorbis_static_d.lib;../../Engine/SoundLib/vorbis_sdk/lib/vorbisfile_static_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ws2_32.lib;dsound.lib;eaxguid.lib;d3d8.lib;d3dx8.lib;dxguid.lib;dinput8.lib;shlwapi.lib;ole32.lib;wbemuuid.lib;winmm.lib;dxerr8.lib;odbc32.lib;odbccp32.lib;iphlpapi.lib;ijl15.lib;imm32.lib;../../Engine/SoundLib/vorbis_sdk/lib/ogg_static_d.lib;../../Engine/SoundLib/vorbis_sdk/lib/vorbis_static_d.lib;../../Engine/SoundLib/vorbis_sdk/lib/vorbisfile_static_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)Client.exe</OutputFile>
|
<OutputFile>$(OutDir)Client.exe</OutputFile>
|
||||||
<AdditionalLibraryDirectories>../../Engine/SoundLib/vorbis_sdk/lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>../../Engine/SoundLib/vorbis_sdk/lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreSpecificDefaultLibraries>LIBCMTD.lib;LIBCMT.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)Client.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)Client.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
|||||||
Reference in New Issue
Block a user