MyGUI_ILogFilter.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_I_LOG_FILTER_H_
#define MYGUI_I_LOG_FILTER_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_LogLevel.h"
namespace MyGUI
{
class MYGUI_EXPORT ILogFilter
{
public:
virtual ~ILogFilter() = default;
virtual bool shouldLog(
std::string_view /*_section*/,
LogLevel /*_level*/,
const struct tm* /*_time*/,
std::string_view /*_message*/,
std::string_view /*_file*/,
int /*_line*/)
{
return true;
}
};
} // namespace MyGUI
#endif // MYGUI_I_LOG_FILTER_H_
MyGUI_LogLevel.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI::ILogFilter
Definition MyGUI_ILogFilter.h:17
MyGUI::ILogFilter::~ILogFilter
virtual ~ILogFilter()=default
MyGUI::ILogFilter::shouldLog
virtual bool shouldLog(std::string_view, LogLevel, const struct tm *, std::string_view, std::string_view, int)
Definition MyGUI_ILogFilter.h:24
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::LogLevel
Definition MyGUI_LogLevel.h:19