MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
13
namespace
MyGUI
14
{
15
16
class
MYGUI_EXPORT
ConsoleLogListener
:
public
ILogListener
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_
MyGUI_ILogListener.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition
MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI::ConsoleLogListener
Definition
MyGUI_ConsoleLogListener.h:17
MyGUI::ILogListener
Definition
MyGUI_ILogListener.h:17
MyGUI
Definition
MyGUI_ActionController.h:15
MyGUI::LogLevel
Definition
MyGUI_LogLevel.h:19
Generated by
1.12.0