ZFFramework
 
Loading...
Searching...
No Matches
ZFLog_StackTrace.h File Reference

utility to log stack More...

#include "ZFLog.h"

Go to the source code of this file.

Functions

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
 
zfstring ZFLogStackTrace (const zfchar *prefix=(zft_zfnull), zfindex ignoreLevel=(0), zfindex maxLevel=(20))
 see ZFLogStackTrace
 
void ZFLogCallerInfo (zfstring &ret, zfindex ignoreLevel=(0))
 get the caller's info
 
zfstring ZFLogCallerInfo (zfindex ignoreLevel=(0))
 see ZFLogCallerInfo
 

Detailed Description

utility to log stack

Function Documentation

◆ ZFLogStackTrace()

void ZFLogStackTrace ( zfstring & ret,
const zfchar * prefix = (zft_zfnull),
zfindex ignoreLevel = (0),
zfindex maxLevel = (20) )
extern

get the function call stack

output may be different depending on the OS and implementation

◆ ZFLogCallerInfo()

void ZFLogCallerInfo ( zfstring & ret,
zfindex ignoreLevel = (0) )
extern

get the caller's info

see ZFLogStackTrace for how to make it available