LBIBCell
 All Classes Functions Variables Friends Pages
UtilLib::Log Class Reference

class for logging reports. The usage of this log class is described on page The Log utilities provided by miind More...

#include <Log.hpp>

Public Member Functions

 Log ()=default
 
 Log (const Log &)=delete
 
Logoperator= (const Log &)=delete
 
virtual ~Log ()
 
std::ostringstream & writeReport (LogLevel level=logINFO)
 

Static Public Member Functions

static std::shared_ptr
< std::ostream > 
getStream ()
 
static void setStream (std::shared_ptr< std::ostream > pStream)
 
static LogLevel getReportingLevel ()
 
static void setReportingLevel (LogLevel level)
 

Detailed Description

class for logging reports. The usage of this log class is described on page The Log utilities provided by miind

Definition at line 141 of file Log.hpp.

Constructor & Destructor Documentation

UtilLib::Log::Log ( )
default

default constructor

UtilLib::Log::Log ( const Log )
delete

copy constructor deleted

UtilLib::Log::~Log ( )
virtual

destructor which writes the message to the stream

Definition at line 133 of file Log.cpp.

Member Function Documentation

LogLevel UtilLib::Log::getReportingLevel ( )
static

getter for the current report level

Returns
the current report level

Definition at line 129 of file Log.cpp.

std::shared_ptr< std::ostream > UtilLib::Log::getStream ( )
static

The Stream it writes to the standard is std::cerr

Returns
The Stream it writes to

Definition at line 87 of file Log.cpp.

Log& UtilLib::Log::operator= ( const Log )
delete

copy operator deleted

Returns
the copy of log
void UtilLib::Log::setReportingLevel ( LogLevel  level)
static

setter for the report level

Parameters
levelThe new report level

Definition at line 122 of file Log.cpp.

void UtilLib::Log::setStream ( std::shared_ptr< std::ostream >  pStream)
static

Setter for the stream

Parameters
pStreamThe Stream the log class should print to.

Definition at line 91 of file Log.cpp.

std::ostringstream & UtilLib::Log::writeReport ( LogLevel  level = logINFO)

takes the log message and stores it in the buffer

Parameters
levelThe level of the log message
Returns
a ostringstream

Definition at line 105 of file Log.cpp.


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