GlistEngine
Loading...
Searching...
No Matches
gLog Class Reference

#include <gUtils.h>

Inheritance diagram for gLog:

Public Types

enum  { LOGLEVEL_INFO , LOGLEVEL_DEBUG , LOGLEVEL_WARNING , LOGLEVEL_ERROR }
 

Public Member Functions

 gLog ()
 
 gLog (const std::string &tag)
 
 ~gLog ()
 
gLogoperator<< (std::ostream &(*func)(std::ostream &))
 
template<typename T >
gLogoperator<< (const T &value)
 

Static Public Member Functions

static void setLoggingEnabled (bool isLoggingEnabled)
 
static bool isLoggingEnabled ()
 
static std::string getLogLevelName (int logLevel)
 

Protected Attributes

int loglevel
 
std::stringstream logmessage
 
std::string logtag
 

Static Protected Attributes

static bool isloggingenabled
 
static std::string loglevelname []
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
LOGLEVEL_INFO 
LOGLEVEL_DEBUG 
LOGLEVEL_WARNING 
LOGLEVEL_ERROR 

Constructor & Destructor Documentation

◆ gLog() [1/2]

gLog::gLog ( )

◆ gLog() [2/2]

gLog::gLog ( const std::string &  tag)

◆ ~gLog()

gLog::~gLog ( )

Member Function Documentation

◆ getLogLevelName()

static std::string gLog::getLogLevelName ( int  logLevel)
static

◆ isLoggingEnabled()

static bool gLog::isLoggingEnabled ( )
static

◆ operator<<() [1/2]

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

◆ operator<<() [2/2]

gLog & gLog::operator<< ( std::ostream &(*)(std::ostream &)  func)
inline

◆ setLoggingEnabled()

static void gLog::setLoggingEnabled ( bool  isLoggingEnabled)
static

Member Data Documentation

◆ isloggingenabled

bool gLog::isloggingenabled
staticprotected

◆ loglevel

int gLog::loglevel
protected

◆ loglevelname

std::string gLog::loglevelname[]
staticprotected

◆ logmessage

std::stringstream gLog::logmessage
protected

◆ logtag

std::string gLog::logtag
protected

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