|
// LoggerMacro.h: entry point defining all macro's for LOG tracing
// if you want to use the logger just include this file
//
//////////////////////////////////////////////////////////////////////
#ifndef LOGGERMACRO_H
#define LOGGERMACRO_H
#if _MSC_VER > 1000
#pragma warning (disable: 4786)
#pragma warning (disable: 4748)
#pragma warning (disable: 4103)
#endif /* _MSC_VER > 1000 */
// Leave here this pre-processor test as it will be done on almost every unit!
#ifdef _WIN32
#ifndef _MT
#error _MT not defined! no Multi-Threading safety in CRunTime library
#endif
#endif
#include "SingleLogger.h"
// Note for the logger to be activated using default INI values:
// just instance the logger at program starts, e.g. place the following in the starting:
// CSingleLogger::GetInstance()
// The Logger is UNICODE aware, please use the _T() macro including strings !!!
#define LTRACE if (CSingleLogger::IsCSingleLoggerEnabled) CSingleLogger::GetInstance()->Trace
#endif /* ! defined LOGGERMACRO_H */
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Senior Software Developer in C/C++ and Oracle.
Ex-physicist holding a Ph.D. on x-ray lasers.