PostSharp 6.9 / / 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 methodApplyTransactionRequirements
Evaluates whether a transaction needs to be open for a specified OpenActivityOptions and updates its TransactionRequirement property. This method must be invoked before calling OpenActivity<T>(T, OpenActivityOptions). It is not automatically called.
Public methodForCurrentType
Gets a new LogSource keeping all the configuration of the current instance, but for the calling type.
Public methodForSource
Gets a new LogSource keeping all the configuration of the current instance, but for a source name.
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 methodStatic memberGet(String)
Gets a log source associated with a specific source name.
Public methodStatic memberGet(String, String)
Gets a log source for a specified role and source name.
Public methodStatic memberGet(Type, String)
Gets a log source for a specified role and 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