Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
Log Class Reference

Class used for globally printing messages and storing them to a file. More...

#include <log.hpp>

Public Member Functions

 Log ()=default
 Default constructor.
 
 Log (const Log &other)=delete
 Copy constructor (deleted).
 
 Log (Log &&other)=delete
 Move constructor (deleted).
 
Logoperator= (Log &other)=delete
 Copy assignment operator (deleted).
 
Logoperator= (Log &&other)=delete
 Move assignment operator (deleted).
 

Static Public Member Functions

static void newLog (std::string text, LogColor textcolor=LogColor::White)
 Add a new log entry. More...
 

Detailed Description

Class used for globally printing messages and storing them to a file.

Member Function Documentation

◆ newLog()

static void Log::newLog ( std::string  text,
LogColor  textcolor = LogColor::White 
)
static

Add a new log entry.

Parameters
textThe text to be included in the log.
textcolorThe color of the text.