Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Logging.​ProviderAliasAttribute

Assembly: Microsoft.Extensions.Logging.Abstractions

Inheritance: object → System.​Attribute → ProviderAliasAttribute

Defines an alias for <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider" /> implementation to be used in filtering rules.

Remarks

<para>By default, filtering rules are defined using the logging provider type's <see cref="P:System.Reflection.Assembly.FullName" /> as configuration section name.</para> <para>The <see cref="T:Microsoft.Extensions.Logging.ProviderAliasAttribute" /> provides for specifying a second, additional, more concise and user-friendly configuration section name for specifying filter rules.</para> <para>The logging provider type's <see cref="P:System.Reflection.Assembly.FullName" /> can still be used as configuration section name when the <see cref="T:Microsoft.Extensions.Logging.ProviderAliasAttribute" /> is specified for the provider, and its configuration section filtering rules have priority over the filtering rules specified for the alias. </para>

Properties

public string
Alias
Gets the alias of the provider.
public object
TypeId

Methods

public bool
Equals​(object obj)
Inherited from System.​Attribute
public int
GetHashCode​()
Inherited from System.​Attribute
public bool
IsDefaultAttribute​()
Inherited from System.​Attribute
public bool
Match​(object obj)
Inherited from System.​Attribute
protected void
Finalize​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object