clan::FileLogger Class Reference

File logger. More...

#include <file_logger.h>

+ Inheritance diagram for clan::FileLogger:

Public Member Functions

 FileLogger (const std::string &filename)
 Constructs a file logger.
 
 ~FileLogger ()
 
void log (const std::string &type, const std::string &text) override
 Log text to file.
 
- Public Member Functions inherited from clan::Logger
 Logger ()
 Constructs a logger.
 
virtual ~Logger ()
 
void disable ()
 Disable logging.
 
void enable ()
 Enable logger for logging.
 
virtual void log (const std::string &type, const std::string &text)=0
 Log text.
 

Additional Inherited Members

- Static Public Attributes inherited from clan::Logger
static std::vector< Logger * > instances
 Pointers to currently enabled logger.
 
static std::recursive_mutex mutex
 Logger mutex object.
 
- Static Protected Member Functions inherited from clan::Logger
static StringFormat get_log_string (const std::string &type, const std::string &text)
 

Detailed Description

File logger.

Constructor & Destructor Documentation

◆ FileLogger()

clan::FileLogger::FileLogger ( const std::string &  filename)

Constructs a file logger.

◆ ~FileLogger()

clan::FileLogger::~FileLogger ( )

Member Function Documentation

◆ log()

void clan::FileLogger::log ( const std::string &  type,
const std::string &  text 
)
overridevirtual

Log text to file.

Implements clan::Logger.


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