bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
|
#include <SyncLog.h>
Public Member Functions | |
template<typename T > | |
C_ReenterableLogger (T &ref, E_LogLevel max_ll=LL_VERBOSE) | |
auto | setLogLevel (E_LogLevel level) |
auto | lockedCount () const |
std::ostream * | useLog () override |
Return non-null pointer if possible. | |
std::ostream * | useLog (E_LogLevel ll) override |
Return non-null pointer if logging is permitted to log level ll. | |
void | unuseLog (bool flush) override |
If the previous call to lockLog() returned null, the behavior is undefined. | |
Public Member Functions inherited from bux::I_ReenterableLog | |
virtual | ~I_ReenterableLog ()=default |
Pointer deletion is hereby granted. | |
Thread-unsafe logger wrapper, which is basic building block of bux::C_ParaLog Instead, the derived C_SyncLogger implements thread safety.
|
inlineexplicit |
|
inline |
|
inline |
|
inlineoverridevirtual |
If the previous call to lockLog() returned null, the behavior is undefined.
Implements bux::I_ReenterableLog.
|
inlineoverridevirtual |
Return non-null pointer if possible.
Implements bux::I_ReenterableLog.
Definition at line 72 of file SyncLog.h.
Referenced by bux::C_ReenterableLogger< C_SinkRefHolder >::useLog().
|
inlineoverridevirtual |
Return non-null pointer if logging is permitted to log level ll.
Implements bux::I_ReenterableLog.
Definition at line 81 of file SyncLog.h.
References bux::C_ReenterableLogger< C_SinkRefHolder >::useLog().