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 494 of file Console.cpp.

494  {
495 
496  Logger::Get()->Error("[CONSOLE]" + text);
497 }
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 499 of file Console.cpp.

499  {
500 
501  Logger::Get()->Fatal("[CONSOLE]" + text);
502 }
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 484 of file Console.cpp.

484  {
485 
486  Logger::Get()->Info("[CONSOLE]" + text);
487 }
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 489 of file Console.cpp.

489  {
490 
491  Logger::Get()->Warning("[CONSOLE]" + text);
492 }
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 474 of file Console.cpp.

474  {
475 
476  Logger::Get()->Write("[CONSOLE]" + text);
477 }
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 479 of file Console.cpp.

479  {
480 
481  Logger::Get()->WriteLine("[CONSOLE]" + text);
482 }
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: