MyGUI  3.2.1
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 
14  mLevel(LogLevel::Info)
15  {
16  }
17 
19  {
20  }
21 
22  bool LevelLogFilter::shouldLog(const std::string& _section, LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line)
23  {
24  return mLevel <= _level;
25  }
26 
28  {
29  mLevel = _value;
30  }
31 
33  {
34  return mLevel;
35  }
36 
37 } // namespace MyGUI