Skip to content

Commit

Permalink
Merge pull request #54 from deepgram/concurrentlogging
Browse files Browse the repository at this point in the history
Updated logging to use ConcurrentDictionary
  • Loading branch information
briancbarrow authored Nov 30, 2022
2 parents fbf9ddd + 4d393b0 commit 5d75f63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Deepgram/Logger/LogProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
Expand All @@ -7,7 +8,7 @@ namespace Deepgram.Logger
{
public class LogProvider
{
private static IDictionary<string, ILogger> _loggers = new Dictionary<string, ILogger>();
private static IDictionary<string, ILogger> _loggers = new ConcurrentDictionary<string, ILogger>();
private static ILoggerFactory _loggerFactory = new LoggerFactory();

public static void SetLogFactory(ILoggerFactory factory)
Expand Down

0 comments on commit 5d75f63

Please sign in to comment.