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

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

Console logger. More...

`#include <console_logger.h>`

Inheritance diagram for clan::ConsoleLogger:

## Public Member Functions
| ConsoleLogger ()
| Constructs a console logger.
| ~ConsoleLogger ()
void | log (const std::string &type, const std::string &text) override
| Log text to console.
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

Console logger.

## Constructor & Destructor Documentation

## ◆ ConsoleLogger()

clan::ConsoleLogger::ConsoleLogger | ( |  | ) |

Constructs a console logger.

## ◆ ~ConsoleLogger()

clan::ConsoleLogger::~ConsoleLogger | ( |  | ) |

## Member Function Documentation

## ◆ log()

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

Log text to console.

Implements clan::Logger.

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

- console_logger.h