fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Static Public Member Functions | Static Public Attributes | Static Private Member Functions | List of all members
WsjcppLog Class Reference

#include <wsjcpp_core.h>

Collaboration diagram for WsjcppLog:
Collaboration graph
[legend]

Static Public Member Functions

static void info (const std::string &sTag, const std::string &sMessage)
 
static void err (const std::string &sTag, const std::string &sMessage)
 
static void throw_err (const std::string &sTag, const std::string &sMessage)
 
static void warn (const std::string &sTag, const std::string &sMessage)
 
static void ok (const std::string &sTag, const std::string &sMessage)
 
static std::vector< std::string > getLastLogMessages ()
 
static void setLogDirectory (const std::string &sDirectoryPath)
 
static void setPrefixLogFile (const std::string &sPrefixLogFile)
 
static void setEnableLogFile (bool bEnable)
 
static void setRotationPeriodInSec (long nRotationPeriodInSec)
 

Static Public Attributes

static WsjcppLogGlobalConf g_WSJCPP_LOG_GLOBAL_CONF
 

Static Private Member Functions

static void add (WsjcppColorModifier &clr, const std::string &sType, const std::string &sTag, const std::string &sMessage)
 

Member Function Documentation

◆ add()

void WsjcppLog::add ( WsjcppColorModifier clr,
const std::string &  sType,
const std::string &  sTag,
const std::string &  sMessage 
)
staticprivate

◆ err()

void WsjcppLog::err ( const std::string &  sTag,
const std::string &  sMessage 
)
static

◆ getLastLogMessages()

std::vector< std::string > WsjcppLog::getLastLogMessages ( )
static

◆ info()

void WsjcppLog::info ( const std::string &  sTag,
const std::string &  sMessage 
)
static

◆ ok()

void WsjcppLog::ok ( const std::string &  sTag,
const std::string &  sMessage 
)
static

◆ setEnableLogFile()

void WsjcppLog::setEnableLogFile ( bool  bEnable)
static

◆ setLogDirectory()

void WsjcppLog::setLogDirectory ( const std::string &  sDirectoryPath)
static

◆ setPrefixLogFile()

void WsjcppLog::setPrefixLogFile ( const std::string &  sPrefixLogFile)
static

◆ setRotationPeriodInSec()

void WsjcppLog::setRotationPeriodInSec ( long  nRotationPeriodInSec)
static

◆ throw_err()

void WsjcppLog::throw_err ( const std::string &  sTag,
const std::string &  sMessage 
)
static

◆ warn()

void WsjcppLog::warn ( const std::string &  sTag,
const std::string &  sMessage 
)
static

Member Data Documentation

◆ g_WSJCPP_LOG_GLOBAL_CONF

WsjcppLogGlobalConf WsjcppLog::g_WSJCPP_LOG_GLOBAL_CONF
static

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