.NET Based OPC UA Client/Server SDK  3.1.0.500
UnifiedAutomation.UaBase.TraceBase< T > Class Template Reference

A base class for a class that provides module specific trace functions. More...

Inherited by UnifiedAutomation.UaBase.TraceDebug, UnifiedAutomation.UaBase.TraceStack, UnifiedAutomation.UaBase.TraceTest, UnifiedAutomation.UaClient.TraceClient, UnifiedAutomation.UaServer.TraceServer, and UnifiedAutomation.UaServer.TraceServerInternal.

Static Public Member Functions

static void Error (string message, params object[] args)
 Writes an error trace. More...
 
static void Error (uint status, string message, params object[] args)
 Writes an error trace with a status code. More...
 
static void Error (Exception e, string message, params object[] args)
 Writes an error trace with an exception. More...
 
static void Error (StatusCode status)
 Writes an error trace with a status. More...
 
static void Warning (string message, params object[] args)
 Writes a warning trace. More...
 
static void Warning (uint status, string message, params object[] args)
 Writes an error trace with a status code. More...
 
static void Warning (Exception e, string message, params object[] args)
 Writes an warning trace with an exception. More...
 
static void Warning (StatusCode status)
 Writes an warning trace with a status. More...
 
static void System (string message, params object[] args)
 Writes a system trace. More...
 
static void System (uint status, string message, params object[] args)
 Writes an system trace with a status code. More...
 
static void System (Exception e, string message, params object[] args)
 Writes a system trace with an exception. More...
 
static void System (StatusCode status)
 Writes an system trace with a status. More...
 
static void Info (string message, params object[] args)
 Writes an info trace. More...
 
static void InterfaceCall (string message, params object[] args)
 Writes an interface call trace. More...
 
static void ProgramFlow (string message, params object[] args)
 Writes a program flow trace. More...
 
static void Data (string message, params object[] args)
 Writes a data trace. More...
 
static TraceBlock StartDataBlock ()
 Starts a block a trace data which will be written to the log at once. More...
 
static void Data (TraceBlock block, string message, params object[] args)
 Writes trace data the specified block. More...
 
static void EndDataBlock (TraceBlock block)
 Writes the specified block to the trace listeners. More...
 

Properties

static TraceLevel Level [get, set]
 The trace level (set to -1 to select default). More...
 
static bool IncludeError [get]
 Gets a value indicating whether error traces are included. More...
 
static bool IncludeWarning [get]
 Gets a value indicating whether warning traces are included. More...
 
static bool IncludeSystem [get]
 Gets a value indicating whether system traces are included. More...
 
static bool IncludeInfo [get]
 Gets a value indicating whether info traces are included. More...
 
static bool IncludeInterfaceCall [get]
 Gets a value indicating whether interface call traces are included. More...
 
static bool IncludeProgramFlow [get]
 Gets a value indicating whether progam flow traces are included. More...
 
static bool IncludeData [get]
 Gets a value indicating whether data traces are included. More...
 

Detailed Description

A base class for a class that provides module specific trace functions.

Type Constraints
T :TraceModuleInfo 
T :new() 

Member Function Documentation

static void UnifiedAutomation.UaBase.TraceBase< T >.Data ( string  message,
params object[]  args 
)
inlinestatic

Writes a data trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Data ( TraceBlock  block,
string  message,
params object[]  args 
)
inlinestatic

Writes trace data the specified block.

Parameters
blockThe block.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.EndDataBlock ( TraceBlock  block)
inlinestatic

Writes the specified block to the trace listeners.

Parameters
blockThe block.
static void UnifiedAutomation.UaBase.TraceBase< T >.Error ( string  message,
params object[]  args 
)
inlinestatic

Writes an error trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Error ( uint  status,
string  message,
params object[]  args 
)
inlinestatic

Writes an error trace with a status code.

Parameters
statusThe status.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Error ( Exception  e,
string  message,
params object[]  args 
)
inlinestatic

Writes an error trace with an exception.

Parameters
eThe exception.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Error ( StatusCode  status)
inlinestatic

Writes an error trace with a status.

Parameters
statusThe status.
static void UnifiedAutomation.UaBase.TraceBase< T >.Info ( string  message,
params object[]  args 
)
inlinestatic

Writes an info trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.InterfaceCall ( string  message,
params object[]  args 
)
inlinestatic

Writes an interface call trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.ProgramFlow ( string  message,
params object[]  args 
)
inlinestatic

Writes a program flow trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static TraceBlock UnifiedAutomation.UaBase.TraceBase< T >.StartDataBlock ( )
inlinestatic

Starts a block a trace data which will be written to the log at once.

Returns
A handle for the block.
static void UnifiedAutomation.UaBase.TraceBase< T >.System ( string  message,
params object[]  args 
)
inlinestatic

Writes a system trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.System ( uint  status,
string  message,
params object[]  args 
)
inlinestatic

Writes an system trace with a status code.

Parameters
statusThe status.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.System ( Exception  e,
string  message,
params object[]  args 
)
inlinestatic

Writes a system trace with an exception.

Parameters
eThe exception.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.System ( StatusCode  status)
inlinestatic

Writes an system trace with a status.

Parameters
statusThe status.
static void UnifiedAutomation.UaBase.TraceBase< T >.Warning ( string  message,
params object[]  args 
)
inlinestatic

Writes a warning trace.

Parameters
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Warning ( uint  status,
string  message,
params object[]  args 
)
inlinestatic

Writes an error trace with a status code.

Parameters
statusThe status.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Warning ( Exception  e,
string  message,
params object[]  args 
)
inlinestatic

Writes an warning trace with an exception.

Parameters
eThe exception.
messageThe message.
argsAdditional arguments used to format the message.
static void UnifiedAutomation.UaBase.TraceBase< T >.Warning ( StatusCode  status)
inlinestatic

Writes an warning trace with a status.

Parameters
statusThe status.

Property Documentation

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeData
staticget

Gets a value indicating whether data traces are included.

true if data info traces included; otherwise, false.

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeError
staticget

Gets a value indicating whether error traces are included.

true if error traces are included; otherwise, false.

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeInfo
staticget

Gets a value indicating whether info traces are included.

true if info traces are included; otherwise, false.

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeInterfaceCall
staticget

Gets a value indicating whether interface call traces are included.

true if interface call traces are included; otherwise, false.

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeProgramFlow
staticget

Gets a value indicating whether progam flow traces are included.

true if progam flow info traces included; otherwise, false.

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeSystem
staticget

Gets a value indicating whether system traces are included.

true if system traces are included; otherwise, false.

bool UnifiedAutomation.UaBase.TraceBase< T >.IncludeWarning
staticget

Gets a value indicating whether warning traces are included.

true if warning traces are included; otherwise, false.

The trace level (set to -1 to select default).

The level.


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