Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utils
log.cpp
Go to the documentation of this file.
1
10
#include "
log.h
"
11
12
#include <iostream>
13
14
using namespace
Utils
;
15
16
17
void
Log::print
(
Log::Color
color)
18
{
19
#ifdef __linux__
20
if
(outstream.rdbuf() != std::cout.rdbuf())
21
{
22
return
;
23
}
24
switch
(color)
25
{
26
case
Log::Color::red:
27
outstream <<
"\033[1;31m"
;
28
break
;
29
case
Log::Color::green:
30
outstream <<
"\033[1;32m"
;
31
break
;
32
case
Log::Color::blue:
33
outstream <<
"\033[1;34m"
;
34
break
;
35
case
Log::Color::normal:
36
outstream <<
"\033[0m"
;
37
break
;
38
case
Log::Color::lightBlue:
39
outstream <<
"\033[34m"
;
40
break
;
41
default
:
42
outstream <<
""
;
43
break
;
44
}
45
#endif
46
}
47
48
49
50
51
52
53
54
55
56
57
58
59
Utils::Log::print
void print(T)
Definition:
log.h:31
Utils::Log::Color
Color
Definition:
log.h:21
Utils
Definition:
context.h:16
log.h
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11