PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­Source Namespace / Trace­Source­Logging­Backend Class / Trace­Source­Logging­Backend Methods / Trace­Source­Logging­Backend.​Get­Trace­Source Method

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)
Syntax
C#
public static TraceSource GetTraceSource(
	string name
)

Parameters

name
Type: System.String
The name of the TraceSource.

Return Value

Type: TraceSource
A 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.
See Also