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. More...
 
 ~FileLogger ()
 
void log (const std::string &type, const std::string &text) override
 Log text to file. More...
 
- Public Member Functions inherited from clan::Logger
 Logger ()
 Constructs a logger. More...
 
virtual ~Logger ()
 
void disable ()
 Disable logging. More...
 
void enable ()
 Enable logger for logging. More...
 

Additional Inherited Members

- Static Public Attributes inherited from clan::Logger
static std::vector< Logger * > instances
 Pointers to currently enabled logger. More...
 
static std::recursive_mutex mutex
 Logger mutex object. More...
 
- 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

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

Constructs a file logger.

clan::FileLogger::~FileLogger ( )

Member Function Documentation

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: