dolittle/DotNET.SDK

View on GitHub
Source/Tenancy.Client/Internal/Log.cs

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using Dolittle.SDK.Failures;
using Microsoft.Extensions.Logging;

namespace Dolittle.SDK.Tenancy.Client.Internal;

/// <summary>
/// Log messages for <see cref="Dolittle.SDK.Tenancy.Client.Internal"/>.
/// </summary>
static partial class Log
{
    [LoggerMessage(0, LogLevel.Debug, "Getting all Tenants")]
    internal static partial void GettingAllTenants(this ILogger logger);
    
    [LoggerMessage(0, LogLevel.Warning, "An error occurred while getting all Tenants because {FailureReason}. Failure Id '{FailureId}'")]
    internal static partial void FailedGettingAllTenants(this ILogger logger, FailureReason failureReason, FailureId failureId);
    
    [LoggerMessage(0, LogLevel.Warning, "An error occurred while getting all Tenants")]
    internal static partial void ErrorGettingTenants(this ILogger logger, Exception ex);
}