MyGUI  3.2.1
Public Member Functions | Static Public Member Functions
MyGUI::LogManager Class Reference

#include <MyGUI_LogManager.h>

Public Member Functions

 LogManager ()
 ~LogManager ()
void flush ()
void log (const std::string &_section, LogLevel _level, const std::string &_message, const char *_file, int _line)
void createDefaultSource (const std::string &_logname)
void setSTDOutputEnabled (bool _value)
bool getSTDOutputEnabled () const
void setLoggingLevel (LogLevel _value)
LogLevel getLoggingLevel () const
void addLogSource (LogSource *_source)

Static Public Member Functions

static LogManagergetInstance ()
static LogManagergetInstancePtr ()

Detailed Description

Definition at line 26 of file MyGUI_LogManager.h.

Constructor & Destructor Documentation

MyGUI::LogManager::LogManager ( )

Definition at line 20 of file MyGUI_LogManager.cpp.

MyGUI::LogManager::~LogManager ( )

Definition at line 31 of file MyGUI_LogManager.cpp.

Member Function Documentation

void MyGUI::LogManager::addLogSource ( LogSource _source)

Add log source.

Definition at line 86 of file MyGUI_LogManager.cpp.

void MyGUI::LogManager::createDefaultSource ( const std::string &  _logname)

Create default LevelLogFilter, FileLogListener and ConsoleLogListener.

Definition at line 91 of file MyGUI_LogManager.cpp.

void MyGUI::LogManager::flush ( )

Call LogSource::flush() for all log sources.

Definition at line 63 of file MyGUI_LogManager.cpp.

LogManager & MyGUI::LogManager::getInstance ( )

Definition at line 48 of file MyGUI_LogManager.cpp.

LogManager * MyGUI::LogManager::getInstancePtr ( )

Definition at line 58 of file MyGUI_LogManager.cpp.

LogLevel MyGUI::LogManager::getLoggingLevel ( ) const

Get default LevelLogFilter level.

Definition at line 132 of file MyGUI_LogManager.cpp.

bool MyGUI::LogManager::getSTDOutputEnabled ( ) const

Is disable ConsoleLogListener enabled.

Definition at line 119 of file MyGUI_LogManager.cpp.

void MyGUI::LogManager::log ( const std::string &  _section,
LogLevel  _level,
const std::string &  _message,
const char *  _file,
int  _line 

Call LogSource::log for all log sources.

Definition at line 69 of file MyGUI_LogManager.cpp.

void MyGUI::LogManager::setLoggingLevel ( LogLevel  _value)

Set default LevelLogFilter level.

Definition at line 124 of file MyGUI_LogManager.cpp.

void MyGUI::LogManager::setSTDOutputEnabled ( bool  _value)

Enable or disable default ConsoleLogListener that writes log into std::cout.
Enabled (true) by default.

Definition at line 111 of file MyGUI_LogManager.cpp.

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