TraceHandler Interface (PRIM_APP.ITraceHandler)
Trace Handler Interface for user defined tracing
Ancestors - None

Details


The iTraceHandler interface is a low overhead tracing mechanism that can be built in to applications to provide feedback for developer without the need to provide replacement runtime objects.
Tracing statements can be written in the RDMLX using the TraceMessageText and TraceMessageData methods and left in place. Unless a Trace Handler is implemented at runtime, they are effectively ignored.

Example


The sample below is a simple web tracehandler.
When this reusable part is created in the runtime and Trace=True added as a parameter on the querystring, tracing output is sent to the browser console.
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_OBJT *implements #Prim_App.iTraceHandler)