33 # pragma warning (push, 3) 34 # pragma warning(disable:4706) // assignment within conditional expression 60 static bool Exist(
const gcstring &LoggerName);
61 static bool Exist(
const char* LoggerName);
67 static ILogger& GetLogger(
const char* LoggerName);
69 static void PushIndent();
70 static void PopIndent();
73 static void OmitLogger();
80 static void ShutDown(
void);
92 static void DefaultInitializer();
95 static lib_handle_t OpenLibrary(
const gcstring Name);
98 static void *FindSymbol(lib_handle_t Handle,
const gcstring Name);
101 static void MakeSureLoggerHasBeenFound();
103 static bool ExistInMap(
gcstring loggerName);
105 static void DeleteLoggerMap();
123 #if defined(__GNUC__) 124 # pragma GCC diagnostic push 125 # pragma GCC diagnostic ignored "-Wvariadic-macros" 129 #define GCLOGINFO( cat, ... ) if(cat && GENICAM_NAMESPACE::CLog::Exist("")) { (cat)->Log(GENICAM_NAMESPACE::ILogger::INFO, ##__VA_ARGS__ ); } 130 #define GCLOGINFOPUSH( cat, ... ) if(cat && GENICAM_NAMESPACE::CLog::Exist("")) { (cat)->Log(GENICAM_NAMESPACE::ILogger::INFO, ##__VA_ARGS__ ); GENICAM_NAMESPACE::CLog::PushIndent();} 131 #define GCLOGWARN( cat, ... ) if(cat && GENICAM_NAMESPACE::CLog::Exist("")) { (cat)->Log(GENICAM_NAMESPACE::ILogger::WARN, ##__VA_ARGS__ ); } 132 #define GCLOGERROR( cat, ... ) if(cat && GENICAM_NAMESPACE::CLog::Exist("")) { (cat)->Log(GENICAM_NAMESPACE::ILogger::ERR, ##__VA_ARGS__ ); } 133 #define GCLOGDEBUG( cat, ... ) if(cat && GENICAM_NAMESPACE::CLog::Exist("")) { (cat)->Log(GENICAM_NAMESPACE::ILogger::DEBUG, ##__VA_ARGS__ ); } 134 #define GCLOGINFOPOP( cat, ... ) if(cat && GENICAM_NAMESPACE::CLog::Exist("")) { (cat)->Log(GENICAM_NAMESPACE::ILogger::INFO, ##__VA_ARGS__ ); GENICAM_NAMESPACE::CLog::PopIndent();} 137 #if defined(__GNUC__) 138 # pragma GCC diagnostic pop 141 #endif // LOG_CLOG_H_ static bool m_LoggerHasBeenFound
void * lib_handle_t
A type corresponds to a library handle which can be platform specific.
static lib_handle_t g_pLibHandle
A handle to an associated logger library.
static ILoggerFactory * m_LogFactory
Common GenICam base include file.
declspec's to be used for Log Windows dll
A string class which is a clone of std::string.
This logging class initializes the logger.