Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | Static Public Member Functions | List of all members
xmog_tracer Class Referenceabstract

An interface that provides a tracing facility for the runtime library. More...

#include <xmog_tracer.h>

Inheritance diagram for xmog_tracer:
Inheritance graph
[legend]

Public Member Functions

virtual void trace (int fac, xmog_trace_level level, const char *format,...)=0
 Trace a message if its level at the configured facility is appropriate. More...
 
virtual void trace (xmog_trace_facility fac, xmog_trace_level level, const char *format,...)=0
 Trace a message if its level at the configured facility is appropriate. More...
 

Static Public Member Functions

static void JNICALL traceOutputDebugString (FILE *fpTrace, int traceLevel, const char *format, va_list args)
 Trace a message using the Windows platform API DebugOutputString function. More...
 
static void JNICALL traceEventLog (FILE *fpTrace, int traceLevel, const char *format, va_list args)
 Trace a message using the Windows event log. More...
 

Detailed Description

An interface that provides a tracing facility for the runtime library.

This interface declares two equivalent methods that allow the tracing of arbitrary messages belonging to one or more of the xmog_trace_facility categories.

Member Function Documentation

◆ trace() [1/2]

virtual void xmog_tracer::trace ( int  fac,
xmog_trace_level  level,
const char *  format,
  ... 
)
pure virtual

Trace a message if its level at the configured facility is appropriate.

Parameters
facthe bitwise or'ed facilties to which this message applies.
levelthe trace level.
formatthe format string. This is a string supporting the printf style of arguments.

Implemented in xmog_options.

◆ trace() [2/2]

virtual void xmog_tracer::trace ( xmog_trace_facility  fac,
xmog_trace_level  level,
const char *  format,
  ... 
)
pure virtual

Trace a message if its level at the configured facility is appropriate.

Parameters
facthe facilty to which this message applies.
levelthe trace level.
formatthe format string. This is a string supporting the printf style of arguments.

Implemented in xmog_options.

◆ traceEventLog()

static void JNICALL xmog_tracer::traceEventLog ( FILE *  fpTrace,
int  traceLevel,
const char *  format,
va_list  args 
)
static

Trace a message using the Windows event log.

Parameters
fpTracenot used in this function.
traceLevelthe tracing level for the message.
formatthe message format.
argsthe variable list arguments.

◆ traceOutputDebugString()

static void JNICALL xmog_tracer::traceOutputDebugString ( FILE *  fpTrace,
int  traceLevel,
const char *  format,
va_list  args 
)
static

Trace a message using the Windows platform API DebugOutputString function.

Parameters
fpTracenot used in this function.
traceLevelthe tracing level for the message.
formatthe message format.
argsthe variable list arguments.

The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.