mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
Fixed A lot of stuff + removed color system
This commit is contained in:
parent
12fc4dfadf
commit
ea3d6204d3
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
project(BeamNG-MP-Server)
|
project(BeamNG-MP-Server)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Created by Anonymous275 on 1/28/2020.
|
// Created by Anonymous275 on 1/28/2020.
|
||||||
//
|
//
|
||||||
|
@ -18,24 +18,24 @@ void setLoggerLevel(char level_string[]);
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
void info(const T& toPrint) {
|
void info(const T& toPrint) {
|
||||||
if (loggerlevel <= 2)
|
if (loggerlevel <= 2)
|
||||||
cout << getDate().str() << "\u001b[36m" << "[INFO]" << "\u001b[0m" << " " << toPrint << endl;
|
cout << getDate().str() << "[INFO] " << toPrint << endl;
|
||||||
}
|
}
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void error(const T& toPrint) {
|
void error(const T& toPrint) {
|
||||||
if (loggerlevel <= 4)
|
if (loggerlevel <= 4)
|
||||||
cout << getDate().str() << "\x1B[31m" << "[ERRO]" << "\u001b[0m" << " " << toPrint << endl;
|
cout << getDate().str() "[ERRO] " << toPrint << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void warn(const T& toPrint) {
|
void warn(const T& toPrint) {
|
||||||
if (loggerlevel <= 3)
|
if (loggerlevel <= 3)
|
||||||
cout << getDate().str() << "\u001b[33m" << "[WARN]" << "\u001b[0m" << " " << toPrint << endl;
|
cout << getDate().str() << "[WARN] " << toPrint << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void debug(const T& toPrint) {
|
void debug(const T& toPrint) {
|
||||||
if (loggerlevel <= 1)
|
if (loggerlevel <= 1)
|
||||||
cout << getDate().str() << "\u001b[35m" << "[DBUG]" << "\u001b[0m" << " " << toPrint << endl;
|
cout << getDate().str() << "[DBUG] " << toPrint << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // LOGGER_H
|
#endif // LOGGER_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user