![]() |
My Project
|
Open an output stream to the engine log. More...
#include <AnnLogger.hpp>
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) | |
~AnnDebug () | |
Destroy the debug outputer object. More... | |
![]() | |
T | seekp (T... args) |
T | setstate (T... args) |
T | getloc (T... args) |
T | precision (T... args) |
T | flags (T... args) |
T | widen (T... args) |
T | fill (T... args) |
T | setf (T... args) |
T | ostream (T... args) |
T | operator bool (T... args) |
T | copyfmt (T... args) |
T | tellp (T... args) |
T | sync_with_stdio (T... args) |
T | ~ostream (T... args) |
T | xalloc (T... args) |
T | exceptions (T... args) |
T | iword (T... args) |
T | rdbuf (T... args) |
T | operator<< (T... args) |
T | narrow (T... args) |
T | good (T... args) |
T | operator! (T... args) |
T | write (T... args) |
T | unsetf (T... args) |
T | width (T... args) |
T | rdstate (T... args) |
T | tie (T... args) |
T | move (T... args) |
T | eof (T... args) |
T | register_callback (T... args) |
T | pword (T... args) |
T | swap (T... args) |
T | flush (T... args) |
T | set_rdbuf (T... args) |
T | fail (T... args) |
T | imbue (T... args) |
T | bad (T... args) |
T | clear (T... args) |
T | put (T... args) |
T | init (T... args) |
Static Public Member Functions | |
static void | setVerbosity (LogLevel level) |
Static Private Attributes | |
static LogLevel | verbosity = LogLevel::Default |
Open an output stream to the engine log.
Definition at line 23 of file AnnLogger.hpp.
|
strong |
Enumerator | |
---|---|
Minimal | |
Default | |
Verbose |
Definition at line 26 of file AnnLogger.hpp.
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::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 | ( | ) |
Destroy the debug outputer object.
Definition at line 28 of file AnnLogger.cpp.
|
static |
Definition at line 12 of file AnnLogger.cpp.
|
staticprivate |
Definition at line 33 of file AnnLogger.hpp.