Class TraceLogger
For tracing messages.
Inheritance
Inherited Members
Namespace: TheIdentityHub
Assembly: TheIdentityHub.dll
Syntax
public static class TraceLogger
Methods
ShouldTrace(TraceEventType)
Checks if we need to trace, depending on config of the project.
Declaration
public static bool ShouldTrace(TraceEventType eventType)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.TraceEventType | eventType | The type for which to check. |
Returns
Type | Description |
---|---|
System.Boolean | Indicates if we need to trace. |
Trace(TraceEventType, Int32, String, Object[])
Writes a trace event using the specified event type and argument array and format.
Declaration
public static void Trace(TraceEventType eventType, int id, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.TraceEventType | eventType | One of the System.Diagnostics.TraceEventType values that specifies the event type of the trace data. |
System.Int32 | id | The identifier. |
System.String | format | A format string that contains zero or more format items, which correspond to objects in the args array. |
System.Object[] | args | An object array containing zero or more objects to format. |
Trace(TraceEventType, Object, Int32, String, Object[])
Writes a trace event using the specified event type and argument array and format.
Declaration
public static void Trace(TraceEventType eventType, object partitionKey, int id, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.TraceEventType | eventType | One of the System.Diagnostics.TraceEventType values that specifies the event type of the trace data. |
System.Object | partitionKey | The partition key. |
System.Int32 | id | The identifier. |
System.String | format | A format string that contains zero or more format items, which correspond to objects in the args array. |
System.Object[] | args | An object array containing zero or more objects to format. |