QuestWeaver
A procedural quest generator
weave::Logger Class Reference

The logger used to print errors and debug messages. More...

#include <WeaverTypes.h>

Public Member Functions

virtual void debug (const std::string &what)
 
virtual void error (const std::string &what)
 

Static Public Member Functions

static void Debug (const std::string &what)
 
static void Error (const std::string &what)
 
static void Error (ContractFailedException ex)
 
static void Fatal (const std::string &what)
 
static void Fatal (ContractFailedException ex)
 
static std::shared_ptr< LoggerGet ()
 
static void Set (std::shared_ptr< Logger > newInstance)
 

Public Attributes

bool EatsNonFatalExceptions = false
 

Detailed Description

The logger used to print errors and debug messages.

The logger can also be configured to eat non-breaking exceptions (e.g. release mode) and prevent them from being thrown. Be aware that this might cause weird behavior!

Definition at line 120 of file WeaverTypes.h.

Member Function Documentation

virtual void weave::Logger::debug ( const std::string &  what)
inlinevirtual

Definition at line 131 of file WeaverTypes.h.

static void weave::Logger::Debug ( const std::string &  what)
inlinestatic

Definition at line 163 of file WeaverTypes.h.

virtual void weave::Logger::error ( const std::string &  what)
inlinevirtual

Definition at line 127 of file WeaverTypes.h.

static void weave::Logger::Error ( const std::string &  what)
inlinestatic

Definition at line 135 of file WeaverTypes.h.

static void weave::Logger::Error ( ContractFailedException  ex)
inlinestatic

Definition at line 141 of file WeaverTypes.h.

static void weave::Logger::Fatal ( const std::string &  what)
inlinestatic

Definition at line 152 of file WeaverTypes.h.

static void weave::Logger::Fatal ( ContractFailedException  ex)
inlinestatic

Definition at line 156 of file WeaverTypes.h.

static std::shared_ptr<Logger> weave::Logger::Get ( )
inlinestatic

Definition at line 169 of file WeaverTypes.h.

static void weave::Logger::Set ( std::shared_ptr< Logger newInstance)
inlinestatic

Definition at line 173 of file WeaverTypes.h.

Member Data Documentation

bool weave::Logger::EatsNonFatalExceptions = false

Definition at line 125 of file WeaverTypes.h.


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