IXWebSocket/ws/ixcore/utils/IXCoreLogger.h

22 lines
377 B
C
Raw Normal View History

#pragma once
#include <functional>
namespace ix
{
2019-05-30 17:46:50 +02:00
class IXCoreLogger
{
public:
using LogFunc = std::function<void(const char*)>;
static void Log(const char* msg);
2019-05-30 17:46:50 +02:00
static void setLogFunction(LogFunc& func)
{
_currentLogger = func;
}
2019-05-30 17:46:50 +02:00
private:
static LogFunc _currentLogger;
};
2019-05-30 17:46:50 +02:00
} // namespace ix