C# Class pt.sapo.gis.trace.Trace

Type that represents a trace
Inheritance: ITrace
Show file Open project: sapo/sapo-services-sdk

Protected Properties

Property Type Description
context ThreadLocal>

Public Methods

Method Description
BeginEntry ( ) : Entry

Start a new entry context. Every entry added after this will be added as sub entry of this one.

BeginEntry ( Entry entry ) : Entry

Start a new entry context. Every entry added after this will be added as sub entry of this one.

BeginEntry ( String description, severityType severity ) : Entry

Start a new entry context. Every entry added after this will be added as sub entry of this one.

BeginEntry ( String description, severityType severity, Object>.IDictionary properties ) : Entry

Start a new entry context. Every entry added after this will be added as sub entry of this one.

EndEntry ( ) : void

Ends the current entry context, adding it to the trace entries list or to the parent entry if it was created inside a context

Finish ( ) : void

Finishes the trace closing all the open context entries

GetSeverityTypes ( ) : ISet

Gets all severity types that exists on trace entries, including sub entries

Trace ( ) : System

Creates a new trace

Trace ( System.Guid id, String contextId ) : System

Creates a new trace with a given identifier and context identifier

TraceEntry ( Entry entry ) : void

Trace a new entry

Private Methods

Method Description
AddEntry ( Entry entry ) : void
GetEntrySeverityTypes ( Entry entry, ISet severities ) : void

Method Details

BeginEntry() public method

Start a new entry context. Every entry added after this will be added as sub entry of this one.
public BeginEntry ( ) : Entry
return Entry

BeginEntry() public method

Start a new entry context. Every entry added after this will be added as sub entry of this one.
public BeginEntry ( Entry entry ) : Entry
entry Entry the entry to start the new context
return Entry

BeginEntry() public method

Start a new entry context. Every entry added after this will be added as sub entry of this one.
public BeginEntry ( String description, severityType severity ) : Entry
description String the new entry description
severity severityType the new entry severity type
return Entry

BeginEntry() public method

Start a new entry context. Every entry added after this will be added as sub entry of this one.
public BeginEntry ( String description, severityType severity, Object>.IDictionary properties ) : Entry
description String the new entry description
severity severityType the new entry severity type
properties Object>.IDictionary the new entry properties map
return Entry

EndEntry() public method

Ends the current entry context, adding it to the trace entries list or to the parent entry if it was created inside a context
public EndEntry ( ) : void
return void

Finish() public method

Finishes the trace closing all the open context entries
public Finish ( ) : void
return void

GetSeverityTypes() public method

Gets all severity types that exists on trace entries, including sub entries
public GetSeverityTypes ( ) : ISet
return ISet

Trace() public method

Creates a new trace
public Trace ( ) : System
return System

Trace() public method

Creates a new trace with a given identifier and context identifier
public Trace ( System.Guid id, String contextId ) : System
id System.Guid
contextId String Trace context identifier
return System

TraceEntry() public method

Trace a new entry
public TraceEntry ( Entry entry ) : void
entry Entry entry the entry to add to the trace
return void

Property Details

context protected property

protected ThreadLocal> context
return ThreadLocal>