44 void LogInfo(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
45 void LogError(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
46 void LogWarning(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
47 void LogCritical(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
48 void LogDebug(
const char *aFile,
int aLine,
const char *aFunction,
const char *aMessage );
50 void SetLogPriority( int32_t aLevel );
51 int32_t GetLogPriority();
60 PtUtilsLib::Logger *mThis;
65 #define PV_LOGINFO( logger, entry ) { \ 66 std::stringstream lStrXTemp; lStrXTemp << entry; \ 67 ( logger ).LogInfo( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 69 #define PV_LOGERROR( logger, entry ) { \ 70 std::stringstream lStrXTemp; lStrXTemp << entry; \ 71 ( logger ).LogError( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 73 #define PV_LOGANDRETURN( logger, result, entry ) { \ 74 std::stringstream lStrXTemp; lStrXTemp << entry; \ 75 ( logger ).LogError( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); \ 76 return PvResult( result, lStrXTemp.str().c_str() ); } 78 #define PV_LOGWARNING( logger, entry ) { \ 79 std::stringstream lStrXTemp; lStrXTemp << entry; \ 80 ( logger ).LogWarning( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 82 #define PV_LOGCRITICAL( logger, entry ) { \ 83 std::stringstream lStrXTemp; lStrXTemp << entry; \ 84 ( logger ).LogCritical( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 86 #define PV_LOGDEBUG( logger, entry ) { \ 87 std::stringstream lStrXTemp; lStrXTemp << entry; \ 88 ( logger ).LogDebug( __FILE__, __LINE__, __FUNCTION__, lStrXTemp.str().c_str() ); } 98 virtual void Log( PvLogLevelEnum aLevel,
const char *aFile, uint32_t aLine,
const char *aFunction,
const char *aCategory,
const char *aMessage ) = 0;
106 PvBaseLib::LogSink *mThis;
Class used to register logging callbacks from your application.
Definition: PvLogger.h:91
Used to log information or events in some logging category.
Definition: PvLogger.h:37
String class.
Definition: PvString.h:21
Definition: PvDfwPayload.h:15
Definition: PvDeviceAdapter.h:16