| 360 | } |
| 361 | |
| 362 | void CConsole::Print(int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor) const |
| 363 | { |
| 364 | LEVEL LogLevel = IConsole::ToLogLevel(Level); |
| 365 | // if console colors are not enabled or if the color is pure white, use default terminal color |
| 366 | if(g_Config.m_ConsoleEnableColors && PrintColor != CONSOLE_DEFAULT_COLOR) |
| 367 | { |
| 368 | log_log_color(LogLevel, ColorToLogColor(PrintColor), pFrom, "%s", pStr); |
| 369 | } |
| 370 | else |
| 371 | { |
| 372 | log_log(LogLevel, pFrom, "%s", pStr); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | void CConsole::SetTeeHistorianCommandCallback(FTeeHistorianCommandCallback pfnCallback, void *pUser) |
| 377 | { |
no test coverage detected