MyGUI  3.2.0
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 41 of file MyGUI_LogManager.h.

Constructor & Destructor Documentation

MyGUI::LogManager::LogManager ( )

Definition at line 35 of file MyGUI_LogManager.cpp.

MyGUI::LogManager::~LogManager ( )

Definition at line 46 of file MyGUI_LogManager.cpp.

Member Function Documentation

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

Add log source.

Definition at line 101 of file MyGUI_LogManager.cpp.

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

Create default LevelLogFilter, FileLogListener and ConsoleLogListener.

Definition at line 106 of file MyGUI_LogManager.cpp.

void MyGUI::LogManager::flush ( )

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

Definition at line 78 of file MyGUI_LogManager.cpp.

LogManager & MyGUI::LogManager::getInstance ( )
static

Definition at line 63 of file MyGUI_LogManager.cpp.

LogManager * MyGUI::LogManager::getInstancePtr ( )
static

Definition at line 73 of file MyGUI_LogManager.cpp.

LogLevel MyGUI::LogManager::getLoggingLevel ( ) const

Get default LevelLogFilter level.

Definition at line 147 of file MyGUI_LogManager.cpp.

bool MyGUI::LogManager::getSTDOutputEnabled ( ) const

Is disable ConsoleLogListener enabled.

Definition at line 134 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 84 of file MyGUI_LogManager.cpp.

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

Set default LevelLogFilter level.

Definition at line 139 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 126 of file MyGUI_LogManager.cpp.


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