persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
logger.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
#include <cstdio>
9
#include <nds.h>
10
#include <source_location>
11
#include <string_view>
12
13
enum class
LogSeverity
14
{
15
DEBUG
,
16
WARNING
,
17
ERROR
,
18
FATAL
,
19
};
20
30
void
logMessage
(
LogSeverity
severity,
31
std::string_view message,
32
std::source_location location = std::source_location::current());
33
37
void
clearLog
();
LogSeverity
LogSeverity
Definition
logger.hpp:14
LogSeverity::WARNING
@ WARNING
Definition
logger.hpp:16
LogSeverity::FATAL
@ FATAL
Definition
logger.hpp:18
LogSeverity::ERROR
@ ERROR
Definition
logger.hpp:17
LogSeverity::DEBUG
@ DEBUG
Definition
logger.hpp:15
logMessage
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.
Definition
logger.cpp:110
clearLog
void clearLog()
Clears the log file for a fresh game session.
Definition
logger.cpp:97
source
core
logger.hpp
Generated by
1.15.0