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

LogLevelSource Methods

The LogLevelSource type exposes the following members.

Methods
  NameDescription
Public methodLogActivity<TDescription>(TDescription, Action, OpenActivityOptions)
Executes an Action and logs its execution.
Public methodLogActivity<TDescription, TResult>(TDescription, Func<TResult>, OpenActivityOptions)
Executes a Func<TResult> and logs its execution.
Public methodLogActivityAsync<TDescription>(TDescription, Func<Task>, OpenActivityOptions)
Executes an asynchronous void delegate and logs its execution.
Public methodLogActivityAsync<TDescription, TResult>(TDescription, Func<Task<TResult>>, OpenActivityOptions)
Executes an asynchronous non-void delegate and logs its execution.
Public methodOpenActivity<T>
Opens an activity.
Public methodWrite<T>(T, WriteMessageOptions)
Writes a message.
Public methodWrite<T>(T, Exception, WriteMessageOptions)
Writes a message and specifies an Exception.
See Also