bux API Reference 1.11.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 | |
C_SyncLogger (I_ReenterableLog &impl, T_LocalZone tz_=T_LocalZone()) | |
C_SyncLogger (I_ReenterableLog &impl, bool use_local_time) | |
std::ostream * | lockLog () override |
std::ostream * | lockLog (E_LogLevel ll) override |
void | unlockLog (bool flush) override |
Additional Inherited Members | |
Public Attributes inherited from bux::I_SyncLog | |
const T_LocalZone | tz |
Protected Member Functions inherited from bux::I_SyncLog | |
I_SyncLog (T_LocalZone tz_) | |
~I_SyncLog ()=default | |
Pointer deletion is not expected. | |
Simplest thread-safe logger wrapper. Apply bux::C_UseLog to block any other thread from using it.
|
inlineexplicit |
Definition at line 131 of file SyncLog.h.
References bux::I_SyncLog::I_SyncLog().
Referenced by C_SyncLogger().
|
inlineexplicit |
Definition at line 133 of file SyncLog.h.
References C_SyncLogger(), and bux::local_zone().
|
overridevirtual |
Lock the logger without log level, for prefix-less log lines
Implements bux::I_SyncLog.
Definition at line 9 of file SyncLog.cpp.
|
overridevirtual |
[in] | ll | Log level |
Lock the logger with log level, for prefixed log lines
Implements bux::I_SyncLog.
Definition at line 23 of file SyncLog.cpp.
|
overridevirtual |
[in] | flush | Indicating if the logger should flush upon unlock. |
Unlock the logger, with or without log level.
Implements bux::I_SyncLog.
Definition at line 38 of file SyncLog.cpp.