MyGUI
3.2.1
|
00001 /* 00002 * This source file is part of MyGUI. For the latest info, see http://mygui.info/ 00003 * Distributed under the MIT License 00004 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) 00005 */ 00006 00007 #include "MyGUI_Precompiled.h" 00008 #include "MyGUI_LevelLogFilter.h" 00009 00010 namespace MyGUI 00011 { 00012 00013 LevelLogFilter::LevelLogFilter() : 00014 mLevel(LogLevel::Info) 00015 { 00016 } 00017 00018 LevelLogFilter::~LevelLogFilter() 00019 { 00020 } 00021 00022 bool LevelLogFilter::shouldLog(const std::string& _section, LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line) 00023 { 00024 return mLevel <= _level; 00025 } 00026 00027 void LevelLogFilter::setLoggingLevel(LogLevel _value) 00028 { 00029 mLevel = _value; 00030 } 00031 00032 LogLevel LevelLogFilter::getLoggingLevel() const 00033 { 00034 return mLevel; 00035 } 00036 00037 } // namespace MyGUI