MyGUI 3.4.3
MyGUI_ConsoleLogListener.h
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#ifndef MYGUI_CONSOLE_LOG_LISTENER_H_
8#define MYGUI_CONSOLE_LOG_LISTENER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_ILogListener.h"
12
13namespace MyGUI
14{
15
17 {
18 public:
20 void log(
21 std::string_view _section,
22 LogLevel _level,
23 const struct tm* _time,
24 std::string_view _message,
25 std::string_view _file,
26 int _line) override;
27
29 bool getEnabled() const;
31 void setEnabled(bool _value);
32
33 private:
34 bool mEnabled{true};
35 };
36
37} // namespace MyGUI
38
39#endif // MYGUI_CONSOLE_LOG_LISTENER_H_
#define MYGUI_EXPORT