TraceSourceLoggingBackend.GetTraceSource Method |
Gets a TraceSource of a given name.
Namespace: PostSharp.Patterns.Diagnostics.Backends.TraceSource
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public static TraceSource GetTraceSource( string name )
Parameters
- name
- Type: System.String
The name of the TraceSource.
Return Value
Type: TraceSourceA TraceSource named name. Two calls of this methods are guaranteed to return the same instance, unless the previous instance has been garbage collected in the meantime.