SPH
Public Member Functions | List of all members
StdOutLogger Class Reference

Standard output logger. More...

#include <Logger.h>

Inheritance diagram for StdOutLogger:
ILogger Polymorphic Noncopyable

Public Member Functions

virtual void writeString (const std::string &s) override
 Logs a string message. More...
 
- Public Member Functions inherited from ILogger
template<typename... TArgs>
void write (TArgs &&... args)
 Creates and logs a message by concatenating arguments. More...
 
void setPrecision (const Size newPrecision)
 Changes the precision of printed numbers. More...
 
void setScientific (const bool newScientific)
 Sets/unsets scientific notation. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 
- Public Member Functions inherited from Noncopyable
 Noncopyable ()=default
 
 Noncopyable (const Noncopyable &)=delete
 
 Noncopyable (Noncopyable &&)=default
 
Noncopyableoperator= (const Noncopyable &)=delete
 
Noncopyableoperator= (Noncopyable &&)=default
 

Detailed Description

Standard output logger.

This is just a wrapper of std::cout with ILogger interface, it does not tructed on spot with no cost. All StdOutLoggers print to the same output.

Definition at line 138 of file Logger.h.

Member Function Documentation

◆ writeString()

void StdOutLogger::writeString ( const std::string &  s)
overridevirtual

Logs a string message.

Todo:
different types (log, warning, error, ...) and levels of verbosity

Implements ILogger.

Definition at line 20 of file Logger.cpp.


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