PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Source Class / Log­Source Methods / Log­Source.​Get Method / Log­Source.​Get Method (String)

LogSource.Get Method (String)

Gets a log source associated with a specific source name.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static LogSource Get(
	string sourceName
)

Parameters

sourceName
Type: System.String
Name that the logging backend associates with a log source.

Return Value

Type: LogSource
See Also