sisi4s
Loading...
Searching...
No Matches
sisi4s::LogStream Class Reference

#include <Log.hpp>

Inheritance diagram for sisi4s::LogStream:
Collaboration diagram for sisi4s::LogStream:

Public Member Functions

 LogStream (std::string const &logFileName, int const logLevel=0, std::string const &indent="\t")
 
std::ostream & prepare (int const rank, std::string const &sourceFileName, int const level, std::string const &category="")
 

Protected Attributes

std::ofstream logFile
 
LogBuffer logBuffer
 
int logLevel
 The log level to use for subsequent LOG messages. A log message will only be written if its log level is equal or below the current log level.
 
std::string indent
 Indentation string used for each log level. By default a tab character will be used.
 
Time startTime
 

Constructor & Destructor Documentation

◆ LogStream()

LogStream::LogStream ( std::string const &  logFileName,
int const  logLevel = 0,
std::string const &  indent = "\t" 
)

Member Function Documentation

◆ prepare()

std::ostream & LogStream::prepare ( int const  rank,
std::string const &  sourceFileName,
int const  level,
std::string const &  category = "" 
)
Here is the call graph for this function:

Member Data Documentation

◆ indent

std::string sisi4s::LogStream::indent
protected

Indentation string used for each log level. By default a tab character will be used.

◆ logBuffer

LogBuffer sisi4s::LogStream::logBuffer
protected

◆ logFile

std::ofstream sisi4s::LogStream::logFile
protected

◆ logLevel

int sisi4s::LogStream::logLevel
protected

The log level to use for subsequent LOG messages. A log message will only be written if its log level is equal or below the current log level.

◆ startTime

Time sisi4s::LogStream::startTime
protected

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