IXCobraMetricsThreadedPublisher.cpp uses a lambda to log instead of std::cerr
This commit is contained in:
14
ws/ixcore/utils/IXCoreLogger.cpp
Normal file
14
ws/ixcore/utils/IXCoreLogger.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include "ixcore/utils/IXCoreLogger.h"
|
||||
|
||||
|
||||
namespace ix
|
||||
{
|
||||
// Default do nothing logger
|
||||
IXCoreLogger::LogFunc IXCoreLogger::_currentLogger = [](const char* msg){};
|
||||
|
||||
void IXCoreLogger::Log(const char* msg)
|
||||
{
|
||||
_currentLogger(msg);
|
||||
}
|
||||
|
||||
} // ix
|
Reference in New Issue
Block a user