Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Hubris::Logger Class Reference

#include <Logger.h>

Static Public Member Functions

static void Start ()
 Starts the logger.
 
static void Close ()
 Flushes and closes all the files used for logging.
 
static void Flush ()
 Flushes and keeps the files open.
 
template<typename ... Args>
static void FileLog (std::string fileName, const char *message, Args &&...args)
 Logs in a file, if the file is used for the first time, it is opened and kept in cache.
 
static void Log (const char *message)
 
static void Log (const std::string &message)
 
template<typename ... Args>
static void Log (fmt::format_string< Args... > message, Args &&... args)
 
static void DbgLog (const std::string &message)
 
template<typename ... Args>
static void DbgLog (fmt::format_string< Args... > message, Args &&... args)
 
template<typename ... Args>
static void Fatal (fmt::format_string< Args... > message, Args &&... args)
 

Detailed Description

Definition at line 18 of file Logger.h.

Member Function Documentation

◆ Close()

static void Hubris::Logger::Close ( )
inlinestatic

Flushes and closes all the files used for logging.

Definition at line 64 of file Logger.h.

◆ DbgLog() [1/2]

static void Hubris::Logger::DbgLog ( const std::string & message)
inlinestatic

Definition at line 127 of file Logger.h.

+ Here is the call graph for this function:

◆ DbgLog() [2/2]

template<typename ... Args>
static void Hubris::Logger::DbgLog ( fmt::format_string< Args... > message,
Args &&... args )
inlinestatic

Definition at line 133 of file Logger.h.

+ Here is the call graph for this function:

◆ Fatal()

template<typename ... Args>
static void Hubris::Logger::Fatal ( fmt::format_string< Args... > message,
Args &&... args )
inlinestatic

Definition at line 147 of file Logger.h.

+ Here is the caller graph for this function:

◆ FileLog()

template<typename ... Args>
static void Hubris::Logger::FileLog ( std::string fileName,
const char * message,
Args &&... args )
inlinestatic

Logs in a file, if the file is used for the first time, it is opened and kept in cache.

Definition at line 87 of file Logger.h.

◆ Flush()

static void Hubris::Logger::Flush ( )
inlinestatic

Flushes and keeps the files open.

Definition at line 76 of file Logger.h.

◆ Log() [1/3]

static void Hubris::Logger::Log ( const char * message)
inlinestatic

Definition at line 104 of file Logger.h.

+ Here is the caller graph for this function:

◆ Log() [2/3]

static void Hubris::Logger::Log ( const std::string & message)
inlinestatic

Definition at line 112 of file Logger.h.

◆ Log() [3/3]

template<typename ... Args>
static void Hubris::Logger::Log ( fmt::format_string< Args... > message,
Args &&... args )
inlinestatic

Definition at line 121 of file Logger.h.

+ Here is the call graph for this function:

◆ Start()

static void Hubris::Logger::Start ( )
inlinestatic

Starts the logger.

Definition at line 45 of file Logger.h.

+ Here is the caller graph for this function:

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