This repository has been archived on 2023-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
2023-03-16 11:56:44 +00:00
|
|
|
---
|
|
|
|
title: "logger.h"
|
|
|
|
summary: "functionalities to write logs to QEMU's serial port."
|
|
|
|
---
|
|
|
|
|
2023-04-26 21:48:11 +00:00
|
|
|
# `DEBUG(string, ...)` - macro
|
|
|
|
calls `log` with log_level _Debug_.
|
|
|
|
Puts filename and line number in front of the format text.
|
|
|
|
|
2023-03-16 11:56:44 +00:00
|
|
|
# `log_level_E` - enum
|
|
|
|
- **None** - Logs just the message without a prefix
|
|
|
|
- **Info** - General information, that could be useful
|
|
|
|
- **Debug** - Should only be used to find bugs and removed (or commented out) after the bug is found
|
|
|
|
- **Warning** - Used for warnings and not important errors
|
|
|
|
- **Error** - Used for Fatal Errors / Will be printed to the screen (graphics driver is not Implemented yet)
|
|
|
|
|
|
|
|
# `log(log_level, string, ...)` - function (void)
|
|
|
|
Logs the given string to QEMU's log port, the string is prefixed with the log type.
|
|
|
|
Format strings are supported.
|