iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
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.

Macro Definition Documentation

◆ APPEND_TIMESTAMP

#define APPEND_TIMESTAMP (   str)    AppendTimestamp(__DATE__, __TIME__, str)

Definition at line 75 of file IPlugLogger.h.

◆ TRACE

#define TRACE

Definition at line 69 of file IPlugLogger.h.

◆ TRACELOC

#define TRACELOC   __FUNCTION__,__LINE__

Definition at line 72 of file IPlugLogger.h.

Function Documentation

◆ AppendTimestamp()

static const char * AppendTimestamp ( const char *  Mmm_dd_yyyy,
const char *  hh_mm_ss,
const char *  cStr 
)
static

Definition at line 141 of file IPlugLogger.h.

◆ AUPropertyStr()

static const char * AUPropertyStr ( int  propID)
static

Definition at line 633 of file IPlugLogger.h.

◆ AUScopeStr()

static const char * AUScopeStr ( int  scope)
static

Definition at line 634 of file IPlugLogger.h.

◆ AUSelectStr()

static const char * AUSelectStr ( int  select)
static

Definition at line 632 of file IPlugLogger.h.

◆ CurrentTime()

static const char * CurrentTime ( )
static

Definition at line 111 of file IPlugLogger.h.

◆ IsWhitespace()

static bool IsWhitespace ( char  c)
static

Definition at line 106 of file IPlugLogger.h.

◆ Trace()

static void Trace ( const char *  funcName,
int  line,
const char *  fmtStr,
  ... 
)
static

Definition at line 630 of file IPlugLogger.h.

◆ VSTOpcodeStr()

static const char * VSTOpcodeStr ( int  opCode)
static

Definition at line 631 of file IPlugLogger.h.