MyGUI: MyGUI_LevelLogFilter.h Source File

MyGUI 3.4.3

MyGUI_LevelLogFilter.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_LEVEL_LOG_FILTER_H_
8#define MYGUI_LEVEL_LOG_FILTER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_ILogFilter.h"
12
13namespace MyGUI
14{
15
16 class MYGUI_EXPORT LevelLogFilter : public ILogFilter
17 {
18 public:
19 LevelLogFilter();
20
22 bool shouldLog(
23 std::string_view _section,
24 LogLevel _level,
25 const struct tm* _time,
26 std::string_view _message,
27 std::string_view _file,
28 int _line) override;
29
33 void setLoggingLevel(LogLevel _value);
37 LogLevel getLoggingLevel() const;
38
39 private:
40 LogLevel mLevel;
41 };
42
43} // namespace MyGUI
44
45#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