MyGUI
3.4.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
src
MyGUI_LevelLogFilter.cpp
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
#include "
MyGUI_Precompiled.h
"
8
#include "
MyGUI_LevelLogFilter.h
"
9
10
namespace
MyGUI
11
{
12
13
LevelLogFilter::LevelLogFilter
() :
14
mLevel(
LogLevel
::Info)
15
{
16
}
17
18
bool
LevelLogFilter::shouldLog
(
const
std::string& _section,
LogLevel
_level,
const
struct
tm* _time,
const
std::string& _message,
const
char
* _file,
int
_line)
19
{
20
return
mLevel <= _level;
21
}
22
23
void
LevelLogFilter::setLoggingLevel
(
LogLevel
_value)
24
{
25
mLevel = _value;
26
}
27
28
LogLevel
LevelLogFilter::getLoggingLevel
()
const
29
{
30
return
mLevel;
31
}
32
33
}
// namespace MyGUI
MyGUI_LevelLogFilter.h
MyGUI_Precompiled.h
MyGUI::LevelLogFilter::LevelLogFilter
LevelLogFilter()
Definition:
MyGUI_LevelLogFilter.cpp:13
MyGUI::LevelLogFilter::shouldLog
bool shouldLog(const std::string &_section, LogLevel _level, const struct tm *_time, const std::string &_message, const char *_file, int _line) override
Definition:
MyGUI_LevelLogFilter.cpp:18
MyGUI::LevelLogFilter::getLoggingLevel
LogLevel getLoggingLevel() const
Definition:
MyGUI_LevelLogFilter.cpp:28
MyGUI::LevelLogFilter::setLoggingLevel
void setLoggingLevel(LogLevel _value)
Definition:
MyGUI_LevelLogFilter.cpp:23
MyGUI
Definition:
MyGUI_ActionController.h:15
MyGUI::LogLevel
Definition:
MyGUI_LogLevel.h:19
Generated by
1.9.4