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

LogSource.ForCurrentType Method

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public LogSource ForCurrentType()

Return Value

Type: LogSource
A LogSource for the calling type.
See Also