persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
logger.cpp File Reference
#include "logger.hpp"
#include "core/globals.hpp"
#include <cstdint>
#include <string>
Include dependency graph for logger.cpp:

Go to the source code of this file.

Functions

void clearLog ()
 Clears the log file for a fresh game session.
void logMessage (LogSeverity severity, std::string_view message, std::source_location location)
 Logs a diagnostic message and halts only for fatal messages.

Function Documentation

◆ clearLog()

void clearLog ( )

Clears the log file for a fresh game session.

Definition at line 97 of file logger.cpp.

Here is the caller graph for this function:

◆ 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.

Warning
Fatal severity will freeze the program when called
Parameters
severitythe log severity level
messagethe message to print
locationthe 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.