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 <ParaLog.h>
Classes | |
class | C_NodeArrayProxy |
class | C_NodeProxy |
Public Member Functions | |
C_ParaLog (const std::chrono::time_zone *tz_=nullptr) | |
C_ParaLog (bool use_local_time) | |
template<class... T_Args> | |
bool | addChild (T_Args &&...args) |
template<class C_LogImpl , class C_Holder = typename C_AutoSinkHolderT<C_LogImpl>::type, class... T_Args> | |
bool | addChildT (std::function< void(C_LogImpl &)> post_ctor={}, E_LogLevel ll=LL_VERBOSE, T_Args &&...args) |
template<typename F > | |
C_NodeArrayProxy | partitionBy (F f) |
std::ostream * | lockLog () override |
Return non-null pointer if possible. | |
std::ostream * | lockLog (E_LogLevel ll) override |
Return non-null pointer if logging is permitted for the given log level ll. | |
void | unlockLog (bool flush) override |
If the previous call to lockLog() returned null, the behavior is undefined. | |
template<typename F > | |
auto | partitionBy (F f) -> C_NodeArrayProxy |
Public Member Functions inherited from bux::I_SyncLog |
Friends | |
class | C_NodeProxy |
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. | |
Thread-safe file log which can be configured to automatically change the output path according to the current timestamp. Apply bux::C_UseOstream to block any other thread WITHIN process from using it.
|
inlineexplicit |
|
inlineexplicit |
bool bux::C_ParaLog::addChild | ( | T_Args &&... | args | ) |
Definition at line 182 of file ParaLog.h.
References bux::C_ParaLog::C_NodeProxy::addChild().
bool bux::C_ParaLog::addChildT | ( | std::function< void(C_LogImpl &)> | post_ctor = {}, |
E_LogLevel | ll = LL_VERBOSE, | ||
T_Args &&... | args ) |
Definition at line 188 of file ParaLog.h.
References bux::C_ParaLog::C_NodeProxy::addChildT().
|
overridevirtual |
Return non-null pointer if possible.
Implements bux::I_SyncLog.
Definition at line 94 of file ParaLog.cpp.
References lockLog().
Referenced by lockLog(), and lockLog().
|
overridevirtual |
Return non-null pointer if logging is permitted for the given log level ll.
Implements bux::I_SyncLog.
Definition at line 99 of file ParaLog.cpp.
References lockLog().
|
nodiscard |
auto bux::C_ParaLog::partitionBy | ( | F | f | ) | -> C_NodeArrayProxy |
Definition at line 194 of file ParaLog.h.
References bux::C_ParaLog::C_NodeProxy::partitionBy().
|
overridevirtual |
If the previous call to lockLog() returned null, the behavior is undefined.
Implements bux::I_SyncLog.
Definition at line 104 of file ParaLog.cpp.