Claire's Game Engine
Full C++ Engine using OpenGL
Loading...
Searching...
No Matches
Log Class Reference

Log class provides static methods for logging messages to the SDL log system. It includes functions for printing informational messages and errors with specific categories, using SDL's built-in logging capabilities. More...

#include <Log.h>

Public Member Functions

 Log ()=delete
 
 Log (const Log &)=delete
 
Logoperator= (const Log &)=delete
 

Static Public Member Functions

static void Info (const std::string &message)
 Logs an informational message to the SDL log system.
 
static void Error (LogType category, const std::string &message)
 Logs an error message with a specified category to the SDL log system.
 

Detailed Description

Log class provides static methods for logging messages to the SDL log system. It includes functions for printing informational messages and errors with specific categories, using SDL's built-in logging capabilities.

Constructor & Destructor Documentation

◆ Log() [1/2]

Log::Log ( )
delete

◆ Log() [2/2]

Log::Log ( const Log & )
delete

Member Function Documentation

◆ Error()

void Log::Error ( LogType category,
const std::string & message )
static

Logs an error message with a specified category to the SDL log system.

Parameters
categoryThe category of the error (e.g., Render, System).
messageThe error message to be logged.

◆ Info()

void Log::Info ( const std::string & message)
static

Logs an informational message to the SDL log system.

Parameters
messageThe message to be logged.

◆ operator=()

Log & Log::operator= ( const Log & )
delete

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