MyGUI
3.2.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
mygui
MyGUIEngine
src
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
"
8
#include "
MyGUI_ConsoleLogListener.h
"
9
10
namespace
MyGUI
11
{
12
13
ConsoleLogListener::ConsoleLogListener
() :
14
mEnabled(true)
15
{
16
}
17
18
ConsoleLogListener::~ConsoleLogListener
()
19
{
20
}
21
22
void
ConsoleLogListener::log
(
const
std::string& _section,
LogLevel
_level,
const
struct
tm* _time,
const
std::string& _message,
const
char
* _file,
int
_line)
23
{
24
if
(mEnabled)
25
std::cout << _message << std::endl;
26
}
27
28
bool
ConsoleLogListener::getEnabled
()
const
29
{
30
return
mEnabled;
31
}
32
33
void
ConsoleLogListener::setEnabled
(
bool
_value)
34
{
35
mEnabled = _value;
36
}
37
38
}
// namespace MyGUI
Generated on Wed Aug 20 2014 00:03:32 for MyGUI by
1.8.3.1