|
persona-3-dual
A DS demake of Persona 3
|
Util to handle error logging. More...
#include <cstdio>#include <nds.h>#include <source_location>#include <string_view>

Go to the source code of this file.
Enumerations | |
| enum class | LogSeverity { DEBUG , WARNING , ERROR , FATAL } |
Functions | |
| void | logMessage (LogSeverity severity, std::string_view message, std::source_location location=std::source_location::current()) |
| Logs a diagnostic message and halts only for fatal messages. | |
| void | clearLog () |
| Clears the log file for a fresh game session. | |
Util to handle error logging.
Definition in file logger.hpp.
|
strong |
| Enumerator | |
|---|---|
| DEBUG | |
| WARNING | |
| ERROR | |
| FATAL | |
Definition at line 13 of file logger.hpp.
| void clearLog | ( | ) |
Clears the log file for a fresh game session.
Definition at line 97 of file logger.cpp.

| void logMessage | ( | LogSeverity | severity, |
| std::string_view | message, | ||
| std::source_location | location = std::source_location::current() ) |
Logs a diagnostic message and halts only for fatal messages.
| severity | the log severity level |
| message | the message to print |
| location | the calling code's location, captured automatically; don't pass it |
print additional info to stderr
log to stderr
log to file
print additional info to stderr & freeze program
Definition at line 110 of file logger.cpp.