PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLog­SourceFor­Source
Open sandboxFocus

LogSource.ForSource Method

ForSource(String)

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

Declaration
public LogSource ForSource(string sourceName)
Parameters
Type Name Description
System.String sourceName

The name of the source for which the LogSource should be created.

Returns
Type Description
LogSource

A LogSource for sourceName.