Mēnsūra
|
Implements a thread-safe logging facility. More...
#include <Logger.hpp>
Public Member Functions | |
Logger ()=default | |
Default constructor. | |
Logger & | operator<< (_EndOfMessage(*)()) |
Overload to end the current message. More... | |
Logger & | operator<< (_TimeStamp(*)()) |
Overload to print a timestamp. More... | |
template<typename T > | |
Logger & | operator<< (T const &msg) |
Performs the actual write. | |
Implements a thread-safe logging facility.
Logger & Logger::operator<< | ( | _EndOfMessage(*)() | ) |
Overload to end the current message.
Prints a newline symbol, flushes the buffer, releases the mutex.
Logger & Logger::operator<< | ( | _TimeStamp(*)() | ) |
Overload to print a timestamp.
Prints the current date and time.