Logger/Log.cs

deepgram-dotnet-sdk · Deepgram/Logger/Log.cs · csharp · MIT
voice, Voice / Speech

Provides a configurable logging facade for .NET SDKs using Microsoft.Extensions.Logging.

// Source: https://github.com/deepgram/deepgram-dotnet-sdk | License: MIT | Copyright 2021 Deepgram Devs
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2024 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
using MelLogLevel = Microsoft.Extensions.Logging.LogLevel;

namespace Deepgram.Logger;

/// <summary>
/// The SDK's logging facade, built on <c>Microsoft.Extensions.Logging</c>.
/// <para>
/// By default the SDK logs to the console. To route SDK logs through your own logging
/// pipeline (Serilog, NLog, OpenTelemetry, Kibana/JSON, etc.) — wit

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key