log: Add some colors to stdout log 🔴🟡🟢🔵🟣 (#5778)

* add colored log

* add config option

* make it dynamic
This commit is contained in:
thejch
2024-04-29 08:07:35 -07:00
committed by GitHub
parent 33e0bb1478
commit a783cd8f40
3 changed files with 32 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ namespace Debug {
inline bool disableStdout = false;
inline bool trace = false;
inline bool shuttingDown = false;
inline int64_t* const* coloredLogs = nullptr;
inline std::string rollingLog = ""; // rolling log contains the ROLLING_LOG_SIZE tail of the log