PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
public LogSource ForCurrentType()

Return Value

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