PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/Legacy­Source­Logger Class

LegacySourceLogger Class

A base class for implementations of ILogger that cannot depend on the PostSharp.Patterns.Diagnostics package.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Custom.LegacySourceLogger

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.8.0 (6.5.8.0)
Syntax
C#
public abstract class LegacySourceLogger : ILogger2, 
	ILogger, ILoggerExceptionHandler, IContextLocalLogger, ILogActivityOptions

The LegacySourceLogger type exposes the following members.

Constructors
  NameDescription
Protected methodLegacySourceLogger
Initializes a new LegacySourceLogger.
Properties
  NameDescription
Public propertyFactory
Gets the ILoggerFactory, which allows to create new instances of the logger. This is used for instance by ForType(Type).
Public propertyRequiresSuspendResume
Public propertyRole
Public propertyType
Methods
  NameDescription
Public methodIsEnabled
Determines whether logging is enabled for a given LogLevel.
Protected methodWrite
Writes a text message.
See Also