Mēnsūra
Public Member Functions | List of all members
logging::Logger Class Reference

Implements a thread-safe logging facility. More...

#include <Logger.hpp>

Public Member Functions

 Logger ()=default
 Default constructor.
 
Loggeroperator<< (_EndOfMessage(*)())
 Overload to end the current message. More...
 
Loggeroperator<< (_TimeStamp(*)())
 Overload to print a timestamp. More...
 
template<typename T >
Loggeroperator<< (T const &msg)
 Performs the actual write.
 

Detailed Description

Implements a thread-safe logging facility.

Member Function Documentation

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.


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