ZFFramework
 
Loading...
Searching...
No Matches
ZFLog_StackTrace.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFLog_StackTrace_h_
7#define _ZFI_ZFLog_StackTrace_h_
8
9#include "ZFLog.h"
11
16
17
23 , ZFMP_OUT(zfstring &, ret)
24 , ZFMP_IN_OPT(const zfchar *, prefix, zfnull)
25 , ZFMP_IN_OPT(zfindex, ignoreLevel, 0)
26 , ZFMP_IN_OPT(zfindex, maxLevel, 20)
27 )
30 , ZFMP_IN_OPT(const zfchar *, prefix, zfnull)
31 , ZFMP_IN_OPT(zfindex, ignoreLevel, 0)
32 , ZFMP_IN_OPT(zfindex, maxLevel, 20)
33 )
34
41 , ZFMP_OUT(zfstring &, ret)
42 , ZFMP_IN_OPT(zfindex, ignoreLevel, 0)
43 )
46 , ZFMP_IN_OPT(zfindex, ignoreLevel, 0)
47 )
48
50#endif // #ifndef _ZFI_ZFLog_StackTrace_h_
51
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
thread-safe log utility
void ZFLogCallerInfo(zfstring &ret, zfindex ignoreLevel=(0))
get the caller's info
zfbool ZFLogStackTraceAvailable()
true if ZFLogStackTrace and ZFLogCallerInfo is available
void ZFLogStackTrace(zfstring &ret, const zfchar *prefix=(zft_zfnull), zfindex ignoreLevel=(0), zfindex maxLevel=(20))
get the function call stack
#define ZFMP_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:111
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:910
#define ZFMETHOD_FUNC_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1065
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98