ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFLogStackTrace.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFLogStackTrace_h_
7#define _ZFI_ZFProtocolZFLogStackTrace_h_
8
9#include "ZFCore/ZFProtocol.h"
10#include "ZFCore/ZFLog.h"
12
18public:
22 virtual void stackTrace(
24 , ZF_IN_OPT const zfchar *prefix = zfnull
25 , ZF_IN_OPT zfindex ignoreLevel = 0
26 , ZF_IN_OPT zfindex maxLevel = 20
28
32 virtual void callerInfo(
34 , ZF_IN_OPT zfindex ignoreLevel = 0
37
39#endif // #ifndef _ZFI_ZFProtocolZFLogStackTrace_h_
40
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_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 ZFLogStackTrace(zfstring &ret, const zfchar *prefix=(zft_zfnull), zfindex ignoreLevel=(0), zfindex maxLevel=(20))
get the function call stack
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_OPTIONAL
macro to show that the protocol is optional
Definition ZFProtocol.h:420
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
virtual void stackTrace(zfstring &ret, const zfchar *prefix=zft_zfnull, zfindex ignoreLevel=0, zfindex maxLevel=20)=0
virtual void callerInfo(zfstring &ret, zfindex ignoreLevel=0)=0