ASGE  3.2.0
Simple Game Framework in GL
Logging::FileLogger Class Reference

#include <Logger.hpp>

Inheritance diagram for Logging::FileLogger:
[legend]
Collaboration diagram for Logging::FileLogger:
[legend]

Public Member Functions

 FileLogger (const LoggingConfig_t &config)
 
void log (const std::string &message, LogLevel level) override
 
void log (const std::string &message) override
 
- Public Member Functions inherited from Logging::LoggerBase
 LoggerBase (const LoggingConfig_t &)
 

Protected Member Functions

void reopen ()
 

Protected Attributes

std::string file_name
 
std::ofstream file
 
std::chrono::seconds reopen_interval {}
 
std::chrono::system_clock::time_point last_reopen
 
- Protected Attributes inherited from Logging::LoggerBase
std::mutex lock
 

Additional Inherited Members

- Public Attributes inherited from Logging::LoggerBase
const std::unordered_map< LogLevel, std::string, EnumHasheruncolored
 
const std::unordered_map< LogLevel, std::string, EnumHashercolored
 

Detailed Description

logger that writes to file

Definition at line 207 of file Logger.hpp.


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