// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Microsoft.Extensions.Logging;
namespace Microsoft.Teams.Extensions.Logging;
public static class LogLevelExtensions
{
public static Common.Logging.LogLevel ToTeams(this LogLevel level)
{
return level switch
{
LogLevel.Information => Common.Logging.LogLevel.Info,
LogLevel.Warning => Common.Logging.LogLevel.Warn,
LogLevel.Error or LogLevel.Critical => Common.Logging.LogLevel.Error,
_ => Common.Logging.LogLevel.Debug
};
}
}microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Extensions/Microsoft.Teams.Extensions.Logging/LogLevelExtensions.cs
20lines · modepreview