CRCLogHelper
-
class CRCLogHelper
Helper class to do bind to the raw log func provided by the host.
Public Types
-
typedef void (*RawLogFunc)(int level, const char *message)
The logger function provided by the CRC_FrameworkServices.
This is used to allow the plugin to log into whatever logging system the host app uses.
Public Functions
-
inline CRCLogHelper(RawLogFunc rawLogFunc)
Creates a helper by providing the rawLogFunc (as provided in the CRC_FrameworkServices)
-
inline void logError(const std::string &message)
Logs error message.
-
inline void logWarning(const std::string &message)
Logs warning message.
-
inline void logInfo(const std::string &message)
Logs info message.
-
inline void logDebug(const std::string &message)
Logs debug message.
-
typedef void (*RawLogFunc)(int level, const char *message)