MyGUI_ConsoleLogListener.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_CONSOLE_LOG_LISTENER_H_
#define MYGUI_CONSOLE_LOG_LISTENER_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_ILogListener.h"
namespace MyGUI
{
class MYGUI_EXPORT ConsoleLogListener : public ILogListener
{
public:
void log(
std::string_view _section,
LogLevel _level,
const struct tm* _time,
std::string_view _message,
std::string_view _file,
int _line) override;
bool getEnabled() const;
void setEnabled(bool _value);
private:
bool mEnabled{true};
};
} // namespace MyGUI
#endif // MYGUI_CONSOLE_LOG_LISTENER_H_
MyGUI_ILogListener.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI::ConsoleLogListener
Definition MyGUI_ConsoleLogListener.h:17
MyGUI::ConsoleLogListener::log
void log(std::string_view _section, LogLevel _level, const struct tm *_time, std::string_view _message, std::string_view _file, int _line) override
Definition MyGUI_ConsoleLogListener.cpp:13
MyGUI::ConsoleLogListener::setEnabled
void setEnabled(bool _value)
Definition MyGUI_ConsoleLogListener.cpp:30
MyGUI::ConsoleLogListener::getEnabled
bool getEnabled() const
Definition MyGUI_ConsoleLogListener.cpp:25
MyGUI::ILogListener
Definition MyGUI_ILogListener.h:17
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::LogLevel
Definition MyGUI_LogLevel.h:19