MyGUI 3.5.3
MyGUI_ConsoleLogListener.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"
9
10namespace MyGUI
11{
12
13 void ConsoleLogListener::log(
14 std::string_view /*_section*/,
15 LogLevel /*unused*/,
16 const struct tm* /*unused*/,
17 std::string_view _message,
18 std::string_view /*unused*/,
19 int /*unused*/)
20 {
21 if (mEnabled)
22 std::cout << _message << std::endl;
23 }
24
25 bool ConsoleLogListener::getEnabled() const
26 {
27 return mEnabled;
28 }
29
30 void ConsoleLogListener::setEnabled(bool _value)
31 {
32 mEnabled = _value;
33 }
34
35} // namespace MyGUI