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

LogSource.ForType Method

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.16.0 (6.5.16.0)
Syntax
C#
public LogSource ForType(
	Type type
)

Parameters

type
Type: System.Type
The Type for which the LogSource should be created.

Return Value

Type: LogSource
A LogSource for type.
See Also