iPlug2 - C++ Audio Plug-in Framework
Macros | Functions
IPlugLogger.h File Reference

IPlug logging a.k.a tracing functionality. More...

#include <cstdio>
#include <cctype>
#include <cstdarg>
#include <cstdint>
#include <cstring>
#include <ctime>
#include <cassert>
#include "wdlstring.h"
#include "mutex.h"
#include "IPlugConstants.h"
#include "IPlugUtilities.h"

Go to the source code of this file.

Macros

#define TRACE
 
#define TRACELOC   __FUNCTION__,__LINE__
 
#define APPEND_TIMESTAMP(str)   AppendTimestamp(__DATE__, __TIME__, str)
 

Functions

static void Trace (const char *funcName, int line, const char *fmtStr,...)
 
static bool IsWhitespace (char c)
 
static const char * CurrentTime ()
 
static const char * AppendTimestamp (const char *Mmm_dd_yyyy, const char *hh_mm_ss, const char *cStr)
 
static const char * VSTOpcodeStr (int opCode)
 
static const char * AUSelectStr (int select)
 
static const char * AUPropertyStr (int propID)
 
static const char * AUScopeStr (int scope)
 

Detailed Description

IPlug logging a.k.a tracing functionality.

To trace some arbitrary data: Trace(TRACELOC, "%s:%d", myStr, myInt); To simply create a trace entry in the log: TRACE No need to wrap tracer calls in #ifdef TRACER_BUILD because Trace is a no-op unless TRACER_BUILD is defined.

Definition in file IPlugLogger.h.