PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Source Class / Log­Source Methods / Log­Source.​For­Source Method

LogSource.ForSource Method

Gets a new LogSource keeping all the configuration of the current instance, but for a source name.

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

Parameters

sourceName
Type: System.String
The name of the source for which the LogSource should be created.

Return Value

Type: LogSource
A LogSource for sourceName.
See Also