votca 2024.2-dev
Loading...
Searching...
No Matches
votca::xtp::LogBuffer Class Referencefinal

#include <logger.h>

Inheritance diagram for votca::xtp::LogBuffer:
Collaboration diagram for votca::xtp::LogBuffer:

Public Member Functions

 LogBuffer ()
 
void setLogLevel (Log::Level LogLevel)
 
void setMultithreading (bool maverick)
 
void setPreface (Log::Level level, std::string preface)
 
void EnablePreface ()
 
void DisablePreface ()
 
void FlushBuffer ()
 
std::string Messages ()
 

Protected Member Functions

int sync ()
 

Private Attributes

Log::Level LogLevel_ = Log::Level::error
 
std::ostringstream stringStream_
 
bool maverick_ = true
 
std::string errorPreface_ = "\n ERROR "
 
std::string warnPreface_ = "\n WARNING "
 
std::string infoPreface_ = "\n "
 
std::string dbgPreface_ = "\n DEBUG "
 
bool writePreface_ = true
 

Detailed Description

Definition at line 49 of file logger.h.

Constructor & Destructor Documentation

◆ LogBuffer()

votca::xtp::LogBuffer::LogBuffer ( )
inline

Definition at line 52 of file logger.h.

Member Function Documentation

◆ DisablePreface()

void votca::xtp::LogBuffer::DisablePreface ( )
inline

Definition at line 80 of file logger.h.

◆ EnablePreface()

void votca::xtp::LogBuffer::EnablePreface ( )
inline

Definition at line 79 of file logger.h.

◆ FlushBuffer()

void votca::xtp::LogBuffer::FlushBuffer ( )
inline

Definition at line 83 of file logger.h.

◆ Messages()

std::string votca::xtp::LogBuffer::Messages ( )
inline

Definition at line 89 of file logger.h.

◆ setLogLevel()

void votca::xtp::LogBuffer::setLogLevel ( Log::Level LogLevel)
inline

Definition at line 55 of file logger.h.

◆ setMultithreading()

void votca::xtp::LogBuffer::setMultithreading ( bool maverick)
inline

Definition at line 58 of file logger.h.

◆ setPreface()

void votca::xtp::LogBuffer::setPreface ( Log::Level level,
std::string preface )
inline

Definition at line 61 of file logger.h.

◆ sync()

int votca::xtp::LogBuffer::sync ( )
inlineprotected

Definition at line 112 of file logger.h.

Member Data Documentation

◆ dbgPreface_

std::string votca::xtp::LogBuffer::dbgPreface_ = "\n DEBUG "
private

Definition at line 108 of file logger.h.

◆ errorPreface_

std::string votca::xtp::LogBuffer::errorPreface_ = "\n ERROR "
private

Definition at line 105 of file logger.h.

◆ infoPreface_

std::string votca::xtp::LogBuffer::infoPreface_ = "\n "
private

Definition at line 107 of file logger.h.

◆ LogLevel_

Log::Level votca::xtp::LogBuffer::LogLevel_ = Log::Level::error
private

Definition at line 97 of file logger.h.

◆ maverick_

bool votca::xtp::LogBuffer::maverick_ = true
private

Definition at line 103 of file logger.h.

◆ stringStream_

std::ostringstream votca::xtp::LogBuffer::stringStream_
private

Definition at line 100 of file logger.h.

◆ warnPreface_

std::string votca::xtp::LogBuffer::warnPreface_ = "\n WARNING "
private

Definition at line 106 of file logger.h.

◆ writePreface_

bool votca::xtp::LogBuffer::writePreface_ = true
private

Definition at line 109 of file logger.h.


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