Ceetron Data Provider Framework
CDPLogHelper.h
1 //##################################################################################################
2 //
3 // Ceetron Data Provider Framework
4 //
5 // --------------------------------------------------------------------------------------------
6 // Copyright (C) 2018, Ceetron AS
7 //##################################################################################################
8 
9 #pragma once
10 
11 #include <string>
12 
13 
14 //==================================================================================================
15 //
16 //
17 //
18 //==================================================================================================
20 {
21 public:
22  typedef void(*RawLogFunc)(int level, const char* message);
23 
24 public:
25  inline CDPLogHelper(RawLogFunc rawLogFunc);
26 
27  inline void logError(const std::string& message);
28  inline void logWarning(const std::string& message);
29  inline void logInfo(const std::string& message);
30  inline void logDebug(const std::string& message);
31 
32 private:
33  RawLogFunc m_logFunc;
34 };
35 
36 
37 
38 
39 #include "CDPLogHelper.inl"
40 
void logWarning(const std::string &message)
Log warning message.
Definition: CDPLogHelper.inl:45
CDPLogHelper(RawLogFunc rawLogFunc)
Create a helper by providing the rawLogFunc (as provided in the CDP_FrameworkServices) ...
Definition: CDPLogHelper.inl:26
void logInfo(const std::string &message)
Log info message.
Definition: CDPLogHelper.inl:56
void logError(const std::string &message)
Log error message.
Definition: CDPLogHelper.inl:34
void(* RawLogFunc)(int level, const char *message)
Definition: CDPLogHelper.h:22
Definition: CDPLogHelper.h:19
void logDebug(const std::string &message)
Log debug message.
Definition: CDPLogHelper.inl:67