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 );
57 PtUtilsLib::Logger *mThis;
62 #define PV_LOGINFO( logger, entry ) { \ 63 std::stringstream lStr; lStr << entry; \ 64 ( logger ).LogInfo( __FILE__, __LINE__, __FUNCTION__, lStr.str().c_str() ); } 66 #define PV_LOGERROR( logger, entry ) { \ 67 std::stringstream lStr; lStr << entry; \ 68 ( logger ).LogError( __FILE__, __LINE__, __FUNCTION__, lStr.str().c_str() ); } 70 #define PV_LOGANDRETURN( logger, result, entry ) { \ 71 std::stringstream lStr; lStr << entry; \ 72 ( logger ).LogError( __FILE__, __LINE__, __FUNCTION__, lStr.str().c_str() ); \ 73 return PvResult( result, lStr.str().c_str() ); } 75 #define PV_LOGWARNING( logger, entry ) { \ 76 std::stringstream lStr; lStr << entry; \ 77 ( logger ).LogWarning( __FILE__, __LINE__, __FUNCTION__, lStr.str().c_str() ); } 79 #define PV_LOGCRITICAL( logger, entry ) { \ 80 std::stringstream lStr; lStr << entry; \ 81 ( logger ).LogCritical( __FILE__, __LINE__, __FUNCTION__, lStr.str().c_str() ); } 83 #define PV_LOGDEBUG( logger, entry ) { \ 84 std::stringstream lStr; lStr << entry; \ 85 ( logger ).LogDebug( __FILE__, __LINE__, __FUNCTION__, lStr.str().c_str() ); } 95 virtual void Log( PvLogLevelEnum aLevel,
const char *aFile, uint32_t aLine,
const char *aFunction,
const char *aCategory,
const char *aMessage ) = 0;
103 PvBaseLib::LogSink *mThis;
Class used to register logging callbacks from your application.
Definition: PvLogger.h:88
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