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

LogSource Methods

The LogSource type exposes the following members.

Methods
  NameDescription
Public methodForCurrentType
Gets a new LogSource keeping all the configuration of the current instance, but for the calling type.
Public methodForType
Gets a new LogSource keeping all the configuration of the current instance, but for a different type.
Public methodStatic memberGet
Gets a LogSource for the calling type.
Public methodIsEnabled
Determines whether logging is enabled in the current LogSource for a given LogLevel.
Public methodWithLevel
Exposes methods that allow to write messages and open activities with a specified LogLevel.
Public methodWithLevels
Returns a new LogSource based on the current instance, but overrides the default logging levels.
Public methodWriteExecutionPoint
Emits a log record with the source file and line of the caller.
See Also