Scheduler
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 
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 
void print(T)
Definition: log.h:31
Color
Definition: log.h:21
Definition: context.h:16