| @@ -3,12 +3,12 @@ | ||||
|  | ||||
| namespace ix | ||||
| { | ||||
| // Default do nothing logger | ||||
| IXCoreLogger::LogFunc IXCoreLogger::_currentLogger = [](const char* /*msg*/){}; | ||||
|     // Default do nothing logger | ||||
|     IXCoreLogger::LogFunc IXCoreLogger::_currentLogger = [](const char* /*msg*/) {}; | ||||
|  | ||||
| void IXCoreLogger::Log(const char* msg) | ||||
| { | ||||
|     _currentLogger(msg); | ||||
| } | ||||
|     void IXCoreLogger::Log(const char* msg) | ||||
|     { | ||||
|         _currentLogger(msg); | ||||
|     } | ||||
|  | ||||
| } // ix | ||||
| } // namespace ix | ||||
|   | ||||
| @@ -9,7 +9,10 @@ namespace ix | ||||
|         using LogFunc = std::function<void(const char*)>; | ||||
|         static void Log(const char* msg); | ||||
|  | ||||
|         static void setLogFunction(LogFunc& func) { _currentLogger = func; } | ||||
|         static void setLogFunction(LogFunc& func) | ||||
|         { | ||||
|             _currentLogger = func; | ||||
|         } | ||||
|  | ||||
|     private: | ||||
|         static LogFunc _currentLogger; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user