PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​MicrosoftMicrosoft­Logging­Backend
Open sandboxFocus

MicrosoftLoggingBackend Class

Logging back-end for Microsoft.Extensions.Logging.

Inheritance
MicrosoftLoggingBackend
Implements
IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Backends.Microsoft
Assembly: PostSharp.Patterns.Diagnostics.Backends.Microsoft.dll
Syntax
public class MicrosoftLoggingBackend : TextLoggingBackend

Constructors

Name Description
MicrosoftLoggingBackend(ILoggerFactory)

Creates an instance of MicrosoftLoggingBackend with the given ILoggerFactory.

Properties

Name Description
Options

Gets the back-end options.

Methods

Name Description
CreateRecordBuilder()

Creates a new LogRecordBuilder.

CreateTypeSource(LoggingNamespaceSource, Type)

Creates a LoggingTypeSource for the given role and type.

CreateTypeSourceBySourceName(LoggingNamespaceSource, String)

Creates a LoggingTypeSource for the given role and logger name.

GetLogger(String)

Gets an ILogger given a category name.

GetTextBackendOptions()

Gets the options.

Extension Methods

LoggingConfigurationManager.ConfigureFromXmlWithAutoReloadAsync(LoggingBackend, Uri, TimeSpan, CancellationToken)
LoggingConfigurationManager.StopAutoReloadConfigurationAsync(LoggingBackend)
LoggingConfigurationManager.ConfigureFromXmlAsync(LoggingBackend, Uri, CancellationToken)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XDocument, Boolean)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XElement, Boolean)
LoggingConfigurationManager.ResetConfiguration(LoggingBackend)