Table of Contents

Class Log

Namespace
arolariu.Backend.Common.Telemetry.Logging
Assembly
arolariu.Backend.Common.dll

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

Action<ILogger, string, Exception>

__LogOptionValueFromKeyVaultCallback

private static readonly Action<ILogger, string, string, Exception?> __LogOptionValueFromKeyVaultCallback

Field Value

Action<ILogger, string, string, Exception>

__LogOptionValueIsCompletelyMissingCallback

private static readonly Action<ILogger, string, string, Exception?> __LogOptionValueIsCompletelyMissingCallback

Field Value

Action<ILogger, string, string, Exception>

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

logger ILogger
propertyName string

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

logger ILogger
propertyName string
keyVaultName string

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)

Parameters

logger ILogger
propertyName string
keyVaultName string