Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ConsoleLogger Class Reference

Logger for console output to the standard logger. More...

#include <Console.h>

+ Inheritance diagram for Leviathan::ConsoleLogger:

Public Member Functions

virtual void Write (const std::string &text) override
 
virtual void WriteLine (const std::string &text) override
 
virtual void Info (const std::string &text) override
 
virtual void Warning (const std::string &text) override
 
virtual void Error (const std::string &text) override
 
virtual void Fatal (const std::string &text) override
 Quits the current game with an error message. More...
 

Detailed Description

Logger for console output to the standard logger.

Definition at line 29 of file Console.h.

Member Function Documentation

◆ Error()

void ConsoleLogger::Error ( const std::string &  text)
overridevirtual

Implements LErrorReporter.

Definition at line 480 of file Console.cpp.

481 {
482 
483  Logger::Get()->Error("[CONSOLE]" + text);
484 }
static DLLEXPORT Logger * Get()
Definition: Logger.cpp:106
DLLEXPORT void Error(const std::string &data) override
Definition: Logger.cpp:177

◆ Fatal()

void ConsoleLogger::Fatal ( const std::string &  Text)
overridevirtual

Quits the current game with an error message.

Implements LErrorReporter.

Definition at line 486 of file Console.cpp.

487 {
488 
489  Logger::Get()->Fatal("[CONSOLE]" + text);
490 }
DLLEXPORT void Fatal(const std::string &Text) override
Quits the current game with an error message.
Definition: Logger.cpp:142
static DLLEXPORT Logger * Get()
Definition: Logger.cpp:106

◆ Info()

void ConsoleLogger::Info ( const std::string &  text)
overridevirtual

Implements LErrorReporter.

Definition at line 468 of file Console.cpp.

469 {
470 
471  Logger::Get()->Info("[CONSOLE]" + text);
472 }
DLLEXPORT void Info(const std::string &data) override
Definition: Logger.cpp:164
static DLLEXPORT Logger * Get()
Definition: Logger.cpp:106

◆ Warning()

void ConsoleLogger::Warning ( const std::string &  text)
overridevirtual

Implements LErrorReporter.

Definition at line 474 of file Console.cpp.

475 {
476 
477  Logger::Get()->Warning("[CONSOLE]" + text);
478 }
DLLEXPORT void Warning(const std::string &data) override
Definition: Logger.cpp:190
static DLLEXPORT Logger * Get()
Definition: Logger.cpp:106

◆ Write()

void ConsoleLogger::Write ( const std::string &  text)
overridevirtual

Implements LErrorReporter.

Definition at line 456 of file Console.cpp.

457 {
458 
459  Logger::Get()->Write("[CONSOLE]" + text);
460 }
DLLEXPORT void Write(const std::string &data) override
Definition: Logger.cpp:113
static DLLEXPORT Logger * Get()
Definition: Logger.cpp:106

◆ WriteLine()

void ConsoleLogger::WriteLine ( const std::string &  text)
overridevirtual

Implements LErrorReporter.

Definition at line 462 of file Console.cpp.

463 {
464 
465  Logger::Get()->WriteLine("[CONSOLE]" + text);
466 }
DLLEXPORT void WriteLine(const std::string &Text) override
Definition: Logger.cpp:137
static DLLEXPORT Logger * Get()
Definition: Logger.cpp:106

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