2023-03-10 10:32:50 +00:00
|
|
|
// This file is part of noxos and licensed under the MIT open source license
|
2023-01-25 21:36:34 +00:00
|
|
|
|
|
|
|
#ifndef NOX_LOGGER_H
|
|
|
|
#define NOX_LOGGER_H
|
|
|
|
|
|
|
|
#include "string.h"
|
|
|
|
|
|
|
|
#define LOG_PORT 0x3F8
|
|
|
|
|
|
|
|
typedef enum {
|
2023-02-12 08:41:44 +00:00
|
|
|
LOG_NONE,
|
2023-01-25 21:36:34 +00:00
|
|
|
LOG_INFO,
|
|
|
|
LOG_DEBUG,
|
|
|
|
LOG_WARNING,
|
|
|
|
LOG_ERROR,
|
|
|
|
|
|
|
|
LOG_ENUM_END
|
|
|
|
} log_level_E;
|
|
|
|
|
|
|
|
// logs a string to qemu's serial port
|
2023-02-22 22:42:44 +00:00
|
|
|
void graphical_log_init ();
|
|
|
|
void log (log_level_E log_level, string_t string, ...);
|
2023-01-25 21:36:34 +00:00
|
|
|
|
|
|
|
#endif //NOX_LOGGER_H
|