11 #define EBUS_ENUM(x) typedef enum 29 EBUS_ENUM(PvLogLevelEnum)
47 void LogInfo(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
48 void LogError(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
49 void LogWarning(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
50 void LogCritical(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
51 void LogDebug(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
53 void SetLogPriority( int32_t aLevel );
54 int32_t GetLogPriority();
63 PtUtilsLib::Logger *mThis;
68 #define PV_LOGINFO( logger, entry ) { \ 69 std::stringstream lStrXTemp; lStrXTemp << entry; \ 70 ( logger ).LogInfo( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 72 #define PV_LOGERROR( logger, entry ) { \ 73 std::stringstream lStrXTemp; lStrXTemp << entry; \ 74 ( logger ).LogError( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 76 #define PV_LOGANDRETURN( logger, result, entry ) { \ 77 std::stringstream lStrXTemp; lStrXTemp << entry; \ 78 ( logger ).LogError( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); \ 79 return PvResult( result, lStrXTemp.str().c_str() ); } 81 #define PV_LOGWARNING( logger, entry ) { \ 82 std::stringstream lStrXTemp; lStrXTemp << entry; \ 83 ( logger ).LogWarning( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 85 #define PV_LOGCRITICAL( logger, entry ) { \ 86 std::stringstream lStrXTemp; lStrXTemp << entry; \ 87 ( logger ).LogCritical( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 89 #define PV_LOGDEBUG( logger, entry ) { \ 90 std::stringstream lStrXTemp; lStrXTemp << entry; \ 91 ( logger ).LogDebug( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 101 virtual void Log( PvLogLevelEnum aLevel,
const char *aFile, uint32_t aLine,
const char *aFunction,
const char *aCategory,
const char *aMessage ) = 0;
109 PvBaseLib::LogSink *mThis;
Class used to register logging callbacks from your application.
Definition: PvLogger.h:94
Used to log information or events in some logging category.
Definition: PvLogger.h:40
String class.
Definition: PvString.h:25
Definition: PvDfwPayload.h:15
Definition: PvDeviceAdapter.h:16