CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
logctx.h File Reference

Per-thread log context: fields every record on this thread inherits. More...

#include <cx/log/log.h>
#include <cx/meta/block.h>
#include <cx/utils/macros.h>

Go to the source code of this file.

Macros

#define withLogCtx(...)
 
#define withLogLocal()   blkWrap(_logLocalPush(), _logLocalPop())
 

Functions

void logCtxPop (void)
 
LogCtxlogCtxCurrent (void)
 
LogCtxlogCtxAcquire (LogCtx *ctx)
 
void logCtxRelease (LogCtx **ctx)
 
LogCtxlogCtxSwap (LogCtx *ctx)
 
void logCtxRestore (LogCtx *ctx)
 
const LogCtxlogCtxParent (const LogCtx *ctx)
 
uint32 logCtxNumVars (const LogCtx *ctx)
 
const stvarlogCtxVars (const LogCtx *ctx)
 
bool logCtxShadowed (const LogCtx *top, const LogCtx *node, uint32 idx, const char *key)
 

Detailed Description

Per-thread log context: fields every record on this thread inherits.

Definition in file logctx.h.