Class Log
This class uses the source generator to create logging methods for the application.
public static class Log
- Inheritance
-
Log
- Inherited Members
Fields
__LogOptionValueFromConfigurationCallback
private static readonly Action<ILogger, string, Exception?> __LogOptionValueFromConfigurationCallback
Field Value
__LogOptionValueFromKeyVaultCallback
private static readonly Action<ILogger, string, string, Exception?> __LogOptionValueFromKeyVaultCallback
Field Value
__LogOptionValueIsCompletelyMissingCallback
private static readonly Action<ILogger, string, string, Exception?> __LogOptionValueIsCompletelyMissingCallback
Field Value
Methods
LogOptionValueFromConfiguration(ILogger, string)
Auto-generated method for logging the option value was loaded from the configuration file.
[LoggerMessage(2, LogLevel.Information, "The option {propertyName} was loaded from the configuration file.")]
public static void LogOptionValueFromConfiguration(this ILogger logger, string propertyName)
Parameters
LogOptionValueFromKeyVault(ILogger, string, string)
Auto-generated method for logging the option value was loaded from a Key Vault.
[LoggerMessage(1, LogLevel.Information, "The option {propertyName} was loaded from a Key Vault: {keyVaultName}.")]
public static void LogOptionValueFromKeyVault(this ILogger logger, string propertyName, string keyVaultName)
Parameters
LogOptionValueIsCompletelyMissing(ILogger, string, string)
Auto-generated method for logging that the option value is missing completely.
[LoggerMessage(0, LogLevel.Critical, "The option {propertyName} is missing from the configuration file AND from the specified Key Vault: {keyVaultName}")]
public static void LogOptionValueIsCompletelyMissing(this ILogger logger, string propertyName, string keyVaultName)