|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Logging utilities for the kernel. More...
Go to the source code of this file.
Macros | |
| #define | LOG_INFO(...) |
| #define | LOG_WARN(...) |
| #define | LOG_ERROR(...) |
| #define | LOG_DEBUG(...) |
Enumerations | |
| enum | log_level { LOG_LEVEL_ERROR , LOG_LEVEL_WARN , LOG_LEVEL_INFO , LOG_LEVEL_DEBUG } |
| The logging levels for the log utility. More... | |
Functions | |
| void | klog (int level,...) |
| Formats a string to hold a logging level and print it. | |
| void | set_debug_on (bool is_on) |
| Sets the debug mode. | |
| bool | get_debug_on (void) |
| Gets the current value of LOG_ENABLE_DEBUG. | |
Variables | |
| int | LOGGING_LEVEL |
Logging utilities for the kernel.
Definition in file log.h.
| #define LOG_DEBUG | ( | ... | ) |
| #define LOG_ERROR | ( | ... | ) |
| #define LOG_INFO | ( | ... | ) |
| #define LOG_WARN | ( | ... | ) |
| bool get_debug_on | ( | void | ) |
| void klog | ( | int | level, |
| ... ) |
| void set_debug_on | ( | bool | is_on | ) |