|
Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Default log handler. More...
#include <OxygenEngine/core/logger.h>
Inheritance diagram for oe::core::DefaultLogHandler:
Collaboration diagram for oe::core::DefaultLogHandler:Public Member Functions | |
| virtual void | write (const std::string &message, const LogLevel level) override |
| Write the log to stdout. | |
Public Member Functions inherited from oe::core::LogHandler | |
| 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 | |
Public Attributes inherited from oe::core::LogHandler | |
| 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. | |
Protected Attributes inherited from oe::core::LogHandler | |
| 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.