Class Logger
Defined in File Log.hpp
Nested Relationships
Nested Types
Class Documentation
-
class Logger
Logging manager singleton.
Public Types
Public Static Functions
-
static Logger &Get()
Get the instance and create one if there isn’t one.
- Returns:
The instance
-
static LogToken Engine(Level level = Level::Info)
Log a message from the engine.
Note
For use only by the engine internally.
- Parameters:
level – The severity of the message (optional, defaults to Info)
- Returns:
A LogToken, which is streamed into like std::cout and logs the resulting message upon destruction. Do not store this return value.
-
static LogToken Client(Level level = Level::Info)
Log a message from the game.
Note
For use by games using the engine.
- Parameters:
level – The severity of the message (optional, defaults to Info)
- Returns:
A LogToken, which is streamed into like std::cout and logs the resulting message upon destruction. Do not store this return value.
-
static Logger &Get()