📄 src/Reviewer.Cli/FoundryLocal/FoundryLocalLoggerExtensions.cs
1 2 3 4 5 6 7 8 9 10 11 12 13
using Microsoft.Extensions.Logging;

namespace Reviewer.Cli.FoundryLocal;

internal static partial class FoundryLocalLoggerExtensions
{
    [LoggerMessage(LogLevel.Warning, "Unsuccessfully registered execution providers: {Status}")]
    public static partial void LogUnsuccessfulExecutionProviderRegistration(this ILogger logger, string status);

    [LoggerMessage(LogLevel.Information, "Downloading model: {Progress}%")]
    public static partial void LogModelDownloadProgress(this ILogger logger, float progress);
}