clan::FileLogger Class Reference - ClanLib SDK
Description: clan::FileLogger Class Reference

Public Member Functions | List of all members
clan::FileLogger Class Reference
clanCore Text

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 () override
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.

## 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 | ( |  | ) |
| override

## 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:

- file_logger.h