|
Turbo Engine 0.3
A C++ game engine using Allegro 5
|
The logger class is used to clarify the logging of the engine. More...
#include <Logger.hpp>
Public Member Functions | |
| Logger (std::string name) | |
| Create a new logger. | |
| template<typename First, typename ... Rest> | |
| void | info (First data, const Rest &... rest) |
| Log an info-level text. | |
| void | info () |
| template<typename First, typename ... Rest> | |
| void | warn (First data, const Rest &... rest) |
| Log a warn-level text. | |
| void | warn () |
| template<typename First, typename ... Rest> | |
| void | error (First data, const Rest &... rest) |
| Log an error-level text. | |
| void | error () |
Static Public Member Functions | |
| template<typename First, typename ... Rest> | |
| static void | log (First data, const Rest &... rest) |
| Log a generic-level text. | |
| static void | log () |
Static Protected Member Functions | |
| template<typename First, typename ... Rest> | |
| static void | print (First data, const Rest &... rest) |
| static void | print () |
Protected Attributes | |
| std::string | name |
The logger class is used to clarify the logging of the engine.
If you need logger for a class, use Logger("name of the logger")
Otherwise, you can just use Logger::log(...) without creating a new instance
|
inline |
Create a new logger.
| name | Name of the logger |
|
inline |
|
inline |
Log an error-level text.
|
inline |
|
inline |
Log an info-level text.
|
inlinestatic |
|
inlinestatic |
Log a generic-level text.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
|
inline |
Log a warn-level text.
|
protected |