Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::log::detail::LoggerBackend Class Reference
Collaboration diagram for rtp::log::detail::LoggerBackend:

Public Member Functions

 LoggerBackend (void) noexcept
 
 ~LoggerBackend () noexcept
 
void setOutputFile (std::string_view filename)
 
void write (Level level, std::string_view msg, const std::source_location &loc)
 

Private Attributes

std::mutex _mutex
 
std::ofstream _file
 

Detailed Description

Definition at line 60 of file Logger.cpp.

Constructor & Destructor Documentation

◆ LoggerBackend()

rtp::log::detail::LoggerBackend::LoggerBackend ( void  )
inlineexplicitnoexcept

Definition at line 62 of file Logger.cpp.

◆ ~LoggerBackend()

rtp::log::detail::LoggerBackend::~LoggerBackend ( )
inlinenoexcept

Definition at line 66 of file Logger.cpp.

References _file.

Member Function Documentation

◆ setOutputFile()

void rtp::log::detail::LoggerBackend::setOutputFile ( std::string_view  filename)
inline

Definition at line 72 of file Logger.cpp.

References _file, and _mutex.

Referenced by rtp::log::configure().

◆ write()

void rtp::log::detail::LoggerBackend::write ( Level  level,
std::string_view  msg,
const std::source_location &  loc 
)
inline

Member Data Documentation

◆ _file

std::ofstream rtp::log::detail::LoggerBackend::_file
private

Definition at line 128 of file Logger.cpp.

Referenced by ~LoggerBackend(), setOutputFile(), and write().

◆ _mutex

std::mutex rtp::log::detail::LoggerBackend::_mutex
private

Definition at line 127 of file Logger.cpp.

Referenced by setOutputFile(), and write().


The documentation for this class was generated from the following file: