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.
Loading...
Searching...
No Matches
bux::C_UseLog Class Reference

#include <SyncLog.h>

Public Member Functions

 C_UseLog (I_SyncLog &obj)
 
 C_UseLog (I_SyncLog &obj, E_LogLevel level)
 
 ~C_UseLog ()
 
 operator bool () const
 
auto & operator* () const
 
auto stream () const
 
auto timezone () const
 

Detailed Description

Helper class to use logger in the current thread while blocking any other thread from using it.

Examples
test/smoke_filelog.cpp, test/smoke_filtlog.cpp, test/smoke_paralog.cpp, and test/smoke_timelog.cpp.

Definition at line 202 of file SyncLog.h.

Constructor & Destructor Documentation

◆ C_UseLog() [1/2]

bux::C_UseLog::C_UseLog ( I_SyncLog & obj)
inline

Definition at line 209 of file SyncLog.h.

◆ C_UseLog() [2/2]

bux::C_UseLog::C_UseLog ( I_SyncLog & obj,
E_LogLevel level )
inline

Definition at line 210 of file SyncLog.h.

◆ ~C_UseLog()

bux::C_UseLog::~C_UseLog ( )
inline

Definition at line 211 of file SyncLog.h.

References bux::I_SyncLog::unlockLog().

Member Function Documentation

◆ operator bool()

bux::C_UseLog::operator bool ( ) const
inline

Definition at line 216 of file SyncLog.h.

◆ operator*()

auto & bux::C_UseLog::operator* ( ) const
inline

Definition at line 217 of file SyncLog.h.

◆ stream()

auto bux::C_UseLog::stream ( ) const
inline

Definition at line 218 of file SyncLog.h.

Referenced by bux::stamp().

Here is the caller graph for this function:

◆ timezone()

auto bux::C_UseLog::timezone ( ) const
inline

Definition at line 219 of file SyncLog.h.

References bux::I_SyncLog::tz.

Referenced by bux::stamp().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: