MyGUI  3.2.1
MyGUI_LevelLogFilter.h
Go to the documentation of this file.
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 #ifndef __MYGUI_LEVEL_LOG_FILTER_H__
00008 #define __MYGUI_LEVEL_LOG_FILTER_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 #include "MyGUI_ILogFilter.h"
00012 
00013 namespace MyGUI
00014 {
00015 
00016     class MYGUI_EXPORT LevelLogFilter :
00017         public ILogFilter
00018     {
00019     public:
00020         LevelLogFilter();
00021         virtual ~LevelLogFilter();
00022 
00024         virtual bool shouldLog(const std::string& _section, LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line);
00025 
00029         void setLoggingLevel(LogLevel _value);
00033         LogLevel getLoggingLevel() const;
00034 
00035     private:
00036         LogLevel mLevel;
00037     };
00038 
00039 } // namespace MyGUI
00040 
00041 #endif // __MYGUI_LEVEL_LOG_FILTER_H__