Annwvyn::AnnDebug Class Reference

Open an output stream to the engine log. More...

#include <AnnLogger.hpp>

Inheritance diagram for Annwvyn::AnnDebug:
Collaboration diagram for Annwvyn::AnnDebug:

Classes

class  AnnDebugBuff
 Nested buffer class. Write the stings to the engine log. More...
 

Public Types

enum  LogLevel { LogLevel::Minimal, LogLevel::Default, LogLevel::Verbose }
 

Public Member Functions

 AnnDebug (Log importance=Log::Trivial)
 
 AnnDebug (const std::string &message, Log importance=Log::Trivial)
 
More...
 
 ~AnnDebug ()
 Destroy the debug outputer object. More...
 
- Public Member Functions inherited from std::ostream
seekp (T... args)
 
setstate (T... args)
 
getloc (T... args)
 
precision (T... args)
 
flags (T... args)
 
widen (T... args)
 
fill (T... args)
 
setf (T... args)
 
ostream (T... args)
 
operator bool (T... args)
 
copyfmt (T... args)
 
tellp (T... args)
 
sync_with_stdio (T... args)
 
~ostream (T... args)
 
xalloc (T... args)
 
exceptions (T... args)
 
iword (T... args)
 
rdbuf (T... args)
 
operator<< (T... args)
 
narrow (T... args)
 
good (T... args)
 
operator! (T... args)
 
write (T... args)
 
unsetf (T... args)
 
width (T... args)
 
rdstate (T... args)
 
tie (T... args)
 
move (T... args)
 
eof (T... args)
 
register_callback (T... args)
 
pword (T... args)
 
swap (T... args)
 
flush (T... args)
 
set_rdbuf (T... args)
 
fail (T... args)
 
imbue (T... args)
 
bad (T... args)
 
clear (T... args)
 
put (T... args)
 
init (T... args)
 

Static Public Member Functions

static void setVerbosity (LogLevel level)
 

Static Private Attributes

static LogLevel verbosity = LogLevel::Default
 

Detailed Description

Open an output stream to the engine log.

Definition at line 23 of file AnnLogger.hpp.

Member Enumeration Documentation

◆ LogLevel

Enumerator
Minimal 
Default 
Verbose 

Definition at line 26 of file AnnLogger.hpp.

Constructor & Destructor Documentation

◆ AnnDebug() [1/2]

AnnDebug::AnnDebug ( Log  importance = Log::Trivial)

Create an AnnDebug object that offer you a output stream to the AnnEngine logger This permit you to write messages to the log using C++ style ostream example : AnnDebug() << "Player life is now " << playerLife; where playerLife is a variable. Everything that works with an std::ostream works here.

Definition at line 17 of file AnnLogger.cpp.

◆ AnnDebug() [2/2]

AnnDebug::AnnDebug ( const std::string message,
Log  importance = Log::Trivial 
)


Permit to log a static string via the debug stream

Definition at line 22 of file AnnLogger.cpp.

◆ ~AnnDebug()

AnnDebug::~AnnDebug ( )

Destroy the debug outputer object.

Definition at line 28 of file AnnLogger.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ setVerbosity()

void AnnDebug::setVerbosity ( LogLevel  level)
static

Definition at line 12 of file AnnLogger.cpp.

Member Data Documentation

◆ verbosity

AnnDebug::LogLevel AnnDebug::verbosity = LogLevel::Default
staticprivate

Definition at line 33 of file AnnLogger.hpp.


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