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 | |
C_SyncLogger (I_ReenterableLog &impl, const std::chrono::time_zone *tz_=nullptr) | |
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 |
Public Member Functions inherited from bux::I_SyncLog |
Additional Inherited Members | |
Public Attributes inherited from bux::I_SyncLog | |
const std::chrono::time_zone *const | tz |
Protected Member Functions inherited from bux::I_SyncLog | |
I_SyncLog (const std::chrono::time_zone *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 |
|
inlineexplicit |
|
overridevirtual |
Lock the logger without log level, for prefix-less log lines
Implements bux::I_SyncLog.
Definition at line 9 of file SyncLog.cpp.
References bux::I_ReenterableLog::useLog().
|
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.
References bux::I_ReenterableLog::useLog().
|
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.
References bux::I_ReenterableLog::unuseLog().