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

LogSource Properties

The LogSource type exposes the following members.

Properties
  NameDescription
Public propertyCritical
Exposes methods that allow to write messages and open activities with the Critical severity.
Public propertyCurrentContext
Public propertyDebug
Exposes methods that allow to write messages and open activities with the Debug severity.
Public propertyDefault
Exposes methods that allow to write messages and open activities with the default severity of the current LogSource. The default severity is Debug, unless it has been overwritten by the WithLevels(LogLevel, LogLevel) method.
Public propertyError
Exposes methods that allow to write messages and open activities with the Error severity.
Public propertyFailure
Exposes methods that allow to write messages and open activities with the default failure severity of the current LogSource. The default severity is Error, unless it has been overwritten by the WithLevels(LogLevel, LogLevel) method.
Public propertyInfo
Exposes methods that allow to write messages and open activities with the Info severity.
Public propertyNone
Exposes methods that allow to open activities with the None severity. Such activities are never displayed, but they can define properties that can be inherited to children activities and messages.
Public propertyTrace
Exposes methods that allow to write messages and open activities with the Trace severity.
Public propertyWarning
Exposes methods that allow to write messages and open activities with the Warning severity.
See Also