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

LogSource.ForType Method

ForType(Type)

Gets a new LogSource keeping all the configuration of the current instance, but for a different type.

Declaration
public LogSource ForType(Type type)
Parameters
Type Name Description
Type type

The Type for which the LogSource should be created.

Returns
Type Description
LogSource

A LogSource for type.