Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Default log handler. More...
#include <OxygenEngine/core/logger.h>
Public Member Functions | |
virtual void | write (const std::string &message, const LogLevel level) override |
Write the log to stdout. | |
![]() | |
virtual bool | canWrite (const LogLevel level, const LogVerbosity verbosity) |
Check if the handler will write according to the the level and verbosity. | |
Additional Inherited Members | |
![]() | |
bool | write_stdout = true |
Indicate to the handler that the message should be sent to stdout / stderr. | |
bool | write_file = false |
Indicate to the handler that the message should be written in a file. | |
![]() | |
Logger * | _logger = nullptr |
Logger instance bound to this handler. | |
Default log handler.
Sends log messages to stdout + optionaly write to a log file
|
overridevirtual |
Write the log to stdout.
Prepends the date and the log level and output like this
message | Message sent by the logger |
level | Level of log |
Implements oe::core::LogHandler.