Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Logger.cpp File Reference

Implementation of the logging system. More...

#include "RType/Logger.hpp"
#include <chrono>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <mutex>
#include <print>
Include dependency graph for Logger.cpp:

Go to the source code of this file.

Classes

class  rtp::log::detail::LoggerBackend
 

Namespaces

namespace  rtp
 
namespace  rtp::log
 
namespace  rtp::log::detail
 

Functions

static LoggerBackendrtp::log::detail::getBackend (void) noexcept
 
void rtp::log::detail::logImpl (Level level, std::string_view message, const std::source_location &loc)
 
auto rtp::log::configure (std::string_view logFilePath) noexcept -> std::expected< void, rtp::Error >
 Configure the logger using a configuration file.
 

Detailed Description

Implementation of the logging system.

Author
Robin Toillon

Implements thread-safe logging with colored console output, file logging support, automatic source location tracking, and timestamp formatting.

Definition in file Logger.cpp.