ProviderAliasUtilities class

Utilities for working with logger provider aliases.

In .NET, logger providers can be decorated with ProviderAlias attribute to provide a shorter configuration name. In Dart, we use a naming convention where provider types follow the pattern: *LoggerProvider, and the alias is the prefix before "LoggerProvider".

For example:

  • ConsoleLoggerProvider -> alias: "Console"
  • DebugLoggerProvider -> alias: "Debug"
  • FileLoggerProvider -> alias: "File"

Constructors

ProviderAliasUtilities()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getAlias(Type providerType) String?
Gets the alias for a logger provider type.
getFullName(Type providerType) String
Gets the full type name for a logger provider type.