Logging back-end for Microsoft.Extensions.Logging.
Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends.Microsoft
Assembly: PostSharp.Patterns.Diagnostics.Backends.Microsoft.dll
Syntax
public class MicrosoftLoggingBackend : TextLoggingBackend, IDisposableConstructors
| 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. |