MyGUI_LevelLogFilter.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_LEVEL_LOG_FILTER_H_
#define MYGUI_LEVEL_LOG_FILTER_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_ILogFilter.h"
namespace MyGUI
{
class MYGUI_EXPORT LevelLogFilter : public ILogFilter
{
public:
LevelLogFilter();
bool shouldLog(
std::string_view _section,
LogLevel _level,
const struct tm* _time,
std::string_view _message,
std::string_view _file,
int _line) override;
void setLoggingLevel(LogLevel _value);
LogLevel getLoggingLevel() const;
private:
LogLevel mLevel;
};
} // namespace MyGUI
#endif // MYGUI_LEVEL_LOG_FILTER_H_
MyGUI_ILogFilter.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI::ILogFilter
Definition MyGUI_ILogFilter.h:17
MyGUI::LevelLogFilter::LevelLogFilter
LevelLogFilter()
Definition MyGUI_LevelLogFilter.cpp:13
MyGUI::LevelLogFilter::getLoggingLevel
LogLevel getLoggingLevel() const
Definition MyGUI_LevelLogFilter.cpp:34
MyGUI::LevelLogFilter::shouldLog
bool shouldLog(std::string_view _section, LogLevel _level, const struct tm *_time, std::string_view _message, std::string_view _file, int _line) override
Definition MyGUI_LevelLogFilter.cpp:18
MyGUI::LevelLogFilter::setLoggingLevel
void setLoggingLevel(LogLevel _value)
Definition MyGUI_LevelLogFilter.cpp:29
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::LogLevel
Definition MyGUI_LogLevel.h:19