![]() |
Max OS 0.3
|
Defines a Logger class for logging messages with different severity levels to multiple output streams. More...
Go to the source code of this file.
Classes | |
| class | MaxOS::Logger |
| A class that handles logging messages to the console and files. More... | |
Macros | |
| #define | ASSERT(condition, format, ...) Logger::ASSERT(condition, format, ##__VA_ARGS__) |
| If the specified condition is not met then the kernel will crash with the specified message. | |
Enumerations | |
| enum class | MaxOS::LogLevel { ERROR , WARNING , HEADER , INFO , TEST , DEBUG } |
| Priority levels for logging messages. Different levels may be used to filter messages based on their importance depending on build type. More... | |
Variables | |
| constexpr uint8_t | MaxOS::MAX_LOG_WRITERS = 5 |
| The maximum number of log writers that can be added to the logger. | |
| constexpr LogLevel | MaxOS::MAX_LOG_LEVEL = LogLevel::DEBUG |
| The maximum log level for this build (messages above this level will not be logged) | |
Defines a Logger class for logging messages with different severity levels to multiple output streams.
Definition in file logger.h.
| #define ASSERT | ( | condition, | |
| format, | |||
| ... | |||
| ) | Logger::ASSERT(condition, format, ##__VA_ARGS__) |
If the specified condition is not met then the kernel will crash with the specified message.
This macro wraps Logger::ASSERT and supports printf-style formatting with variadic arguments.
| condition | The condition to check. |
| format | The format string (like printf). |
| ... | Additional arguments to format. |
|
strong |
|
constexpr |
The maximum log level for this build (messages above this level will not be logged)
Definition at line 37 of file logger.h.
Referenced by MaxOS::Logger::write_char().
|
constexpr |
The maximum number of log writers that can be added to the logger.
Definition at line 33 of file logger.h.
Referenced by MaxOS::Logger::add_log_writer().