Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

pantheios/trace.h File Reference


Detailed Description

[C, C++] Include file for the Pantheios Tracing API

#include <pantheios/pantheios.h>
#include <pantheios/fileline.h>
#include <stlsoft/stlsoft.h>

Go to the source code of this file.

Defines

#define PANTHEIOS_TRACE_PREFIX   PANTHEIOS_FILELINE
 The file-line prefix uses by the Pantheios Tracing API for C constructs.
#define PANTHEIOS_TRACE_LOG_PREFIX   ::pantheios::pan_slice_t(PANTHEIOS_FILELINE, STLSOFT_NUM_ELEMENTS(PANTHEIOS_FILELINE) - 1)
 The file-line prefix uses by the Pantheios Tracing API for C++ constructs.
#define PANTHEIOS_TRACE_PRINTF(sev, fmt,...)   ::pantheios::pantheios_logprintf((sev), "%s" fmt, stlsoft_static_cast(PANTHEIOS_NS_QUAL(pan_char_t) const*, PANTHEIOS_TRACE_PREFIX), __VA_ARGS__)
 Logs a printf()-formatted statement with a file+line prefix, at the given severity level.
#define PANTHEIOS_TRACE(sev,...)   ::pantheios::log((sev), PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the given severity level.
#define PANTHEIOS_TRACE_EMERGENCY(...)   ::pantheios::log(PANTHEIOS_SEV_EMERGENCY, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::EMERGENCY severity level.
#define PANTHEIOS_TRACE_ALERT(...)   ::pantheios::log(PANTHEIOS_SEV_ALERT, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::ALERT severity level.
#define PANTHEIOS_TRACE_CRITICAL(...)   ::pantheios::log(PANTHEIOS_SEV_CRITICAL, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::CRITICAL severity level.
#define PANTHEIOS_TRACE_ERROR(...)   ::pantheios::log(PANTHEIOS_SEV_ERROR, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::ERROR severity level.
#define PANTHEIOS_TRACE_WARNING(...)   ::pantheios::log(PANTHEIOS_SEV_WARNING, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::WARNING severity level.
#define PANTHEIOS_TRACE_NOTICE(...)   ::pantheios::log(PANTHEIOS_SEV_NOTICE, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::NOTICE severity level.
#define PANTHEIOS_TRACE_INFORMATIONAL(...)   ::pantheios::log(PANTHEIOS_SEV_INFORMATIONAL, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::INFORMATIONAL severity level.
#define PANTHEIOS_TRACE_DEBUG(...)   ::pantheios::log(PANTHEIOS_SEV_DEBUG, PANTHEIOS_TRACE_LOG_PREFIX, __VA_ARGS__)
 Logs a multi-argument statement with a file+line prefix, at the pantheios::DEBUG severity level.

pantheios Library documentation © Matthew Wilson & Synesis Software, 2006-2011 SourceForge.net Logo