btftoolchain
helper::logging::GlobalLogger Class Reference

Class for the Logger. More...

Public Member Functions

 GlobalLogger () noexcept
 Constructor of the class GlobalLogger. More...
 
void openLogFile (const std::string &path)
 Opens the log file. More...
 
void closeLogFile () noexcept
 Closes the log file. More...
 
std::ostream & getLogger () noexcept
 Gets the logger (ostream). More...
 
std::ostream & getNullLogger () noexcept
 Gets the null logger (ostream). More...
 

Detailed Description

Class for the Logger.

Constructor & Destructor Documentation

◆ GlobalLogger()

helper::logging::GlobalLogger::GlobalLogger ( )
inlinenoexcept

Constructor of the class GlobalLogger.

Member Function Documentation

◆ closeLogFile()

void helper::logging::GlobalLogger::closeLogFile ( )
inlinenoexcept

Closes the log file.

Here is the caller graph for this function:

◆ getLogger()

std::ostream& helper::logging::GlobalLogger::getLogger ( )
inlinenoexcept

Gets the logger (ostream).

Returns
The log file, if available, else cout.
Here is the caller graph for this function:

◆ getNullLogger()

std::ostream& helper::logging::GlobalLogger::getNullLogger ( )
inlinenoexcept

Gets the null logger (ostream).

Returns
The null logger.
Here is the caller graph for this function:

◆ openLogFile()

void helper::logging::GlobalLogger::openLogFile ( const std::string &  path)
inline

Opens the log file.

Parameters
[in]pathPath to the log file.
Here is the call graph for this function:
Here is the caller graph for this function:

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