Logger is used for thread-safe output of messages.
More...
#include <logger.h>
Logger is used for thread-safe output of messages.
Logger writes messages into LogBuffer. Inheritance from ostream allows to use overloaded << and >> for writing. Example:
the logger at an ERROR level cout << log;
standard output
Logger is used for thread-safe output of messages.
void setReportLevel(Log::Level ReportLevel)
#define XTP_LOG(level, log)
Logger has four predefined log levels: error, warning, info, debug.
Definition at line 164 of file logger.h.
◆ Logger() [1/2]
votca::xtp::Logger::Logger |
( |
| ) |
|
|
inline |
◆ Logger() [2/2]
votca::xtp::Logger::Logger |
( |
Log::Level | ReportLevel | ) |
|
|
inline |
◆ DisablePreface()
void votca::xtp::Logger::DisablePreface |
( |
| ) |
|
|
inline |
◆ EnablePreface()
void votca::xtp::Logger::EnablePreface |
( |
| ) |
|
|
inline |
◆ getReportLevel()
Log::Level votca::xtp::Logger::getReportLevel |
( |
| ) |
const |
|
inline |
◆ isMaverick()
bool votca::xtp::Logger::isMaverick |
( |
| ) |
const |
|
inline |
◆ Messages()
std::string votca::xtp::Logger::Messages |
( |
| ) |
|
|
inlineprivate |
◆ operator()()
◆ setCommonPreface()
void votca::xtp::Logger::setCommonPreface |
( |
const std::string & | preface | ) |
|
|
inline |
◆ setMultithreading()
void votca::xtp::Logger::setMultithreading |
( |
bool | maverick | ) |
|
|
inline |
◆ setPreface()
void votca::xtp::Logger::setPreface |
( |
Log::Level | level, |
|
|
const std::string & | preface ) |
|
inline |
◆ setReportLevel()
void votca::xtp::Logger::setReportLevel |
( |
Log::Level | ReportLevel | ) |
|
|
inline |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | log_out, |
|
|
Logger & | logger ) |
|
friend |
◆ buffer_
◆ maverick_
bool votca::xtp::Logger::maverick_ = false |
|
private |
◆ ReportLevel_
The documentation for this class was generated from the following file: