|
| cLogThread (void) |
|
virtual | ~cLogThread (void) |
|
| STDMETHOD_ (cString, get_Name)() const override |
|
virtual HRESULT | addEvent (cLogEvent *pEvent) override |
| ILogProcessor. More...
|
|
virtual HRESULT | FlushLogs () override |
|
| IUNKNOWN_DISAMBIG (cRefBase) |
|
| UNITTEST_FRIEND (cLogThread) |
|
| cLogNexus (LOG_ATTR_MASK_t uAttrMask=LOG_ATTR_ALL_MASK, LOGLEV_TYPE eLogLevel=LOGLEV_ANY) |
|
virtual | ~cLogNexus () |
|
virtual const cLogNexus * | get_ThisLogNexus () const override |
|
virtual bool | IsLogged (LOG_ATTR_MASK_t uAttrMask, LOGLEV_TYPE eLogLevel) const override |
|
cLogAppender * | EnumAppender (ITERATE_t i) |
|
const cLogAppender * | EnumAppender (ITERATE_t i) const |
|
bool | HasAppender (cLogAppender *pAppender, bool bDescend=false) const |
|
HRESULT | AddAppender (cLogAppender *pAppender) |
|
bool | RemoveAppender (cLogAppender *pAppender, bool bDescend=false) |
|
cLogAppender * | FindAppenderType (const TYPEINFO_t &rType, bool bDescend=false) const |
|
bool | RemoveAppenderType (const TYPEINFO_t &rType, bool bDescend=true) |
|
virtual | ~cLogProcessor () |
|
HRESULT | addEventS (LOG_ATTR_MASK_t uAttrMask, LOGLEV_TYPE eLogLevel, cStringL sMsg, cStringL sContext="") |
|
HRESULT | addEventV (LOG_ATTR_MASK_t uAttrMask, LOGLEV_TYPE eLogLevel, const LOGCHAR_t *pszFormat, va_list vargs) |
|
HRESULT _cdecl | addEventF (LOG_ATTR_MASK_t uAttrMask, LOGLEV_TYPE eLogLevel, const LOGCHAR_t *pszFormat,...) |
|
HRESULT _cdecl | addInfoF (const LOGCHAR_t *pszFormat,...) |
|
HRESULT _cdecl | addDebugErrorF (const LOGCHAR_t *pszFormat,...) |
|
HRESULT _cdecl | addDebugWarnF (const LOGCHAR_t *pszFormat,...) |
|
HRESULT _cdecl | addDebugInfoF (const LOGCHAR_t *pszFormat,...) |
|
HRESULT _cdecl | addDebugTraceF (const LOGCHAR_t *pszFormat,...) |
|
| cStreamOutput () noexcept |
|
virtual | ~cStreamOutput () |
|
virtual HRESULT | WriteX (const void *pData, size_t nDataSize) |
|
HRESULT | WriteT (const void *pVal, size_t nDataSize) |
|
template<typename TYPE > |
HRESULT | WriteT (TYPE val) |
|
HRESULT | WriteSize (size_t nSize) |
|
HRESULT | WriteHashCode (HASHCODE_t nHashCode) |
|
HRESULT | WriteN (const void *pBuffer, size_t nSize) |
|
template<typename _CH > |
HRESULT | WriteStringN (const _CH *pszStr) |
|
template<typename _CH > |
HRESULT | WriteCharRepeat (_CH nChar, int nCount=1) |
|
StrLen_t | VPrintf (const char *pszFormat, va_list args) |
|
StrLen_t | VPrintf (const wchar_t *pszFormat, va_list args) |
|
StrLen_t _cdecl | Printf (const char *pszFormat,...) |
|
StrLen_t _cdecl | Printf (const wchar_t *pszFormat,...) |
|
HRESULT | WriteStream (cStreamInput &sInp, STREAM_POS_t nSizeMax=k_FILE_BLOCK_SIZE, IStreamProgressCallback *pProgress=nullptr, TIMESYSD_t nTimeout=0) |
| Copy cStreamInput to this stream. More...
|
|
virtual HRESULT | FlushX () |
|
virtual | ~cStreamBase () |
|
virtual STREAM_SEEKRET_t | Seek (STREAM_OFFSET_t iOffset, SEEK_ORIGIN_TYPE eSeekOrigin=SEEK_Set) |
|
void | SeekToBegin () |
|
STREAM_POS_t | SeekToEnd () |
|
virtual STREAM_POS_t | GetPosition () const |
|
virtual STREAM_POS_t | GetLength () const |
|
| cLogAppender () |
|
virtual | ~cLogAppender () |
|
bool | RemoveAppenderThis () |
| Remove myself from the list of valid appenders. More...
|
|
virtual HRESULT | CreateThread (DWORD dwCreationFlags=0) override |
|
| cThreadChecked () |
|
virtual | ~cThreadChecked () |
|
virtual bool | CheckStuckThread (TIMESYSD_t iMilliSecTilStuck, bool bTerminateAndRestart) |
| called by external thread. More...
|
|
UINT | get_ThreadTicks () const |
|
bool | isCriticalWait () const |
|
void | ChangeCriticalWait (int iDelta) |
|
| cThread () |
|
virtual | ~cThread () |
|
bool | isValidThreadHandle () const noexcept |
|
THREADID_t | get_HashCode () const noexcept |
|
virtual bool | isValidCheck () const noexcept |
| < memory allocation and structure definitions are valid. More...
|
|
| STDMETHOD_ (cString, get_Name)() const |
| override memory allocation and structure definitions are valid. More...
|
|
bool | isThreadSleeping () const noexcept |
|
THREAD_EXITCODE_t | get_ExitCodeThread () const |
|
int | get_ThreadPriority () const |
|
bool | put_ThreadPriority (int nPriority) |
|
bool | SuspendThread () |
|
bool | ResumeThread () |
|
virtual HRESULT | SleepThread (TIMESYSD_t dwWaitMillisec=1, bool bAlertable=false) |
|
virtual bool | RequestStopThread (bool bWillWait=false) noexcept override |
|
bool | ExitCurrentThread (THREAD_EXITCODE_t nExitCode=THREAD_EXITCODE_OK) |
|
bool | WaitForThreadExit (TIMESYSD_t nMilliSec=cTimeSys::k_FREQ) |
|
THREAD_EXITCODE_t | WaitForThreadExitCode (TIMESYSD_t iTimeMSec=cTimeSys::k_FREQ) |
|
bool | TerminateThread (THREAD_EXITCODE_t iExitCode=THREAD_EXITCODE_ERR, TIMESYSD_t nMilliSec=0) |
|
void | AttachToCurrentThread () |
|
HRESULT | CreateThread (THREAD_FUNC_t pEntryProc, void *pArgs, DWORD dwCreationFlags=0) |
|
void | CloseThread () |
|
| cThreadBase () noexcept |
|
virtual | ~cThreadBase () |
|
virtual | ~CObject () |
|
virtual void | AssertValid () const |
| < memory allocation and structure definitions are valid. More...
|
|
virtual void | Serialize (cArchive &a) |
|
| cThreadId (THREADID_t nThreadId=k_NULL) noexcept |
|
THREADID_t | GetThreadId () const noexcept |
|
THREADID_t | get_HashCode () const noexcept |
|
bool | isCurrentThread () const noexcept |
|
bool | isValidId () const noexcept |
|
void | InitCurrentId () noexcept |
|
| cRefBase (int iRefCount=0) noexcept |
|
virtual | ~cRefBase () |
|
int | get_RefCount () const noexcept |
|
HASHCODE_t | get_HashCode () const noexcept |
|
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept |
|
virtual void | onFinalRelease () |
|
bool | isValidObj () const noexcept |
|
| STDMETHOD_ (ULONG, AddRef)(void) override |
|
| STDMETHOD_ (ULONG, Release)(void) override |
|
STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
|
void | IncRefCount () |
|
void | DecRefCount () |
|
bool | isStaticConstruct () const noexcept |
|
void | StaticConstruct () |
|
void | StaticDestruct () |
|
bool | isDestructing () noexcept |
|
void | SetDestructing () |
|
| cThreadState () noexcept |
|
bool | isThreadRunning () const noexcept |
|
bool | isThreadStopping () const noexcept |
|
A log appender that serializes/queues other appenders (from different threads) on to a single thread. cLogThread should be added as an appender to cLogMgr::I(), then other appenders added(chained) to this. assume this is cThread based.