Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef PUBSEQ_GATEWAY_LOGGING__HPP
2 #define PUBSEQ_GATEWAY_LOGGING__HPP
43 #define PSG_TRACE(message) \
46 ERR_POST(Trace << message); \
49 #define PSG_INFO(message) \
51 if (g_ConfiguredSeverity == eDiag_Info) \
52 ERR_POST(Info << message); \
55 #define PSG_WARNING(message) \
57 if (g_ConfiguredSeverity <= eDiag_Warning) \
58 ERR_POST(Warning << message); \
61 #define PSG_ERROR(message) \
63 if (g_ConfiguredSeverity <= eDiag_Error) \
67 #define PSG_CRITICAL(message) \
69 if (g_ConfiguredSeverity <= eDiag_Critical) \
70 ERR_POST(Critical << message); \
73 #define PSG_MESSAGE(message) \
75 ERR_POST(Message << message); \
78 #define PSG_NOTE(message) \
80 ERR_POST(Note << message); \
EDiagSev
Severity level for the posted diagnostics.
Defines NCBI C++ diagnostic APIs, classes, and macros.
EDiagSev g_ConfiguredSeverity