Player12
An open source football management simulator
Loading...
Searching...
No Matches
Logger Class Reference

Provides simple logging utilities. More...

#include <logger.h>

Static Public Member Functions

static void init ()
 Initializes the logging system. The previous session's log is kept as RuntimePaths::previousLogPath().
 
static void info (const std::string &msg)
 Logs an informational message.
 
static void error (const std::string &msg)
 Logs an error message.
 
static void debug (const std::string &msg)
 Logs a debug message.
 
static void warn (const std::string &msg)
 Logs a warning message.
 
static void flush ()
 

Detailed Description

Provides simple logging utilities.

Member Function Documentation

◆ debug()

void Logger::debug ( const std::string &  msg)
static

Logs a debug message.

Parameters
msgThe message to log.

◆ error()

void Logger::error ( const std::string &  msg)
static

Logs an error message.

Parameters
msgThe message to log.

◆ flush()

void Logger::flush ( )
static

Writes buffered messages to the log file now.

◆ info()

void Logger::info ( const std::string &  msg)
static

Logs an informational message.

Parameters
msgThe message to log.

◆ init()

void Logger::init ( )
static

Initializes the logging system. The previous session's log is kept as RuntimePaths::previousLogPath().

◆ warn()

void Logger::warn ( const std::string &  msg)
static

Logs a warning message.

Parameters
msgThe message to log.

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