Overload  1.1
Game engine with editor
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
OvDebug::Logger Class Reference

#include <Logger.h>

Public Member Functions

 Logger ()=delete
 

Static Public Member Functions

static void Log (const std::string &p_message, ELogLevel p_logLevel=ELogLevel::LOG_DEFAULT, ELogMode p_logMode=ELogMode::DEFAULT, std::string p_handlerId="default")
 
static ConsoleHandlerCreateConsoleHandler (std::string p_id)
 
static FileHandlerCreateFileHandler (std::string p_id)
 
static HistoryHandlerCreateHistoryHandler (std::string p_id)
 
static ConsoleHandlerGetConsoleHandler (std::string p_id)
 
static FileHandlerGetFileHandler (std::string p_id)
 
static HistoryHandlerGetHistoryHandler (std::string p_id)
 

Static Public Attributes

static OvTools::Eventing::Event< const LogData & > LogEvent
 

Constructor & Destructor Documentation

◆ Logger()

OvDebug::Logger::Logger ( )
delete

Disabled constructor

Member Function Documentation

◆ CreateConsoleHandler()

OvDebug::ConsoleHandler & OvDebug::Logger::CreateConsoleHandler ( std::string  p_id)
static

Create console handler

Parameters
p_id

◆ CreateFileHandler()

OvDebug::FileHandler & OvDebug::Logger::CreateFileHandler ( std::string  p_id)
static

Create console handler

Parameters
p_id

◆ CreateHistoryHandler()

OvDebug::HistoryHandler & OvDebug::Logger::CreateHistoryHandler ( std::string  p_id)
static

Create console handler

Parameters
p_id

◆ GetConsoleHandler()

OvDebug::ConsoleHandler & OvDebug::Logger::GetConsoleHandler ( std::string  p_id)
static

Return target console handler

Parameters
p_id

◆ GetFileHandler()

OvDebug::FileHandler & OvDebug::Logger::GetFileHandler ( std::string  p_id)
static

Return target file handler

Parameters
p_id

◆ GetHistoryHandler()

OvDebug::HistoryHandler & OvDebug::Logger::GetHistoryHandler ( std::string  p_id)
static

Return target history handler

Parameters
p_id

◆ Log()

void OvDebug::Logger::Log ( const std::string &  p_message,
ELogLevel  p_logLevel = ELogLevel::LOG_DEFAULT,
ELogMode  p_logMode = ELogMode::DEFAULT,
std::string  p_handlerId = "default" 
)
static

Display error massage to target destination

Parameters
p_message
p_logLevel
p_logMode
p_handlerID

Member Data Documentation

◆ LogEvent

OvTools::Eventing::Event< const OvDebug::LogData & > OvDebug::Logger::LogEvent
static

@project: Overload

Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

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