gams::Logger Class Reference

Logging class used to get feedback about the API actions. More...

#include <gamslog.h>

Public Member Functions

 Logger (const LogId logID, const GAMSEnum::DebugLevel debug, const char *where)
 
 ~Logger ()
 Destructor. More...
 
Loggeroperator<< (std::ostream &(*os)(std::ostream &))
 
Loggeroperator<< (const std::string &value)
 
template<typename T >
Loggeroperator<< (const T &value)
 

Detailed Description

Logging class used to get feedback about the API actions.

Definition at line 95 of file gamslog.h.

Constructor & Destructor Documentation

◆ Logger()

gams::Logger::Logger ( const LogId  logID,
const GAMSEnum::DebugLevel  debug,
const char *  where 
)
inline

Constructor.

Parameters
logIDA GAMS log ID.
debugA GAMS debug level.
whereLocation of the log file.

Definition at line 103 of file gamslog.h.

◆ ~Logger()

gams::Logger::~Logger ( )

Destructor.

Member Function Documentation

◆ operator<<() [1/3]

Logger& gams::Logger::operator<< ( std::ostream &(*)(std::ostream &)  os)
inline

Inserts data to log.

Returns
Returns the logger reference (*this).

Definition at line 112 of file gamslog.h.

◆ operator<<() [2/3]

Logger& gams::Logger::operator<< ( const std::string &  value)
inline

Inserts data to log.

Returns
Returns the logger reference (*this).

Definition at line 121 of file gamslog.h.

◆ operator<<() [3/3]

template<typename T >
Logger& gams::Logger::operator<< ( const T &  value)
inline

Inserts data to log.

Returns
Returns the logger reference (*this).

Definition at line 129 of file gamslog.h.