Loading...
Searching...
No Matches
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.
 
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 96 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 104 of file gamslog.h.

◆ ~Logger()

gams::Logger::~Logger ( )

Destructor.

Member Function Documentation

◆ operator<<() [1/3]

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

Inserts data to log.

Returns
Returns the logger reference (*this).

Definition at line 122 of file gamslog.h.

◆ operator<<() [2/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 130 of file gamslog.h.

◆ operator<<() [3/3]

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

Inserts data to log.

Returns
Returns the logger reference (*this).

Definition at line 113 of file gamslog.h.