diff --git a/ElasticLogging/ElasticLogging.cs b/ElasticLogging/ElasticLogging.cs index f06c1f5..a14266e 100644 --- a/ElasticLogging/ElasticLogging.cs +++ b/ElasticLogging/ElasticLogging.cs @@ -1,7 +1,6 @@ using ElasticLogging.Classes; using ElasticLogging.Enums; using Nest; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; @@ -10,7 +9,7 @@ namespace ElasticLogging { - public class ElasticLogging : IElasticLogging, IDisposable, IAsyncDisposable + public class Logger : ILogger, IDisposable, IAsyncDisposable { private readonly ElasticClient _elasticClient; private readonly string _logName; @@ -18,7 +17,7 @@ public class ElasticLogging : IElasticLogging, IDisposable, IAsyncDisposable private readonly List _pendingLogs; private readonly LoggingSettings _settings; - public ElasticLogging(LoggingSettings settings, string name, bool logToFile) + public Logger(LoggingSettings settings, string name, bool logToFile) { _logName = name; _logToFile = logToFile; diff --git a/ElasticLogging/IElasticLogging.cs b/ElasticLogging/IElasticLogging.cs index e5e298b..3ab4c70 100644 --- a/ElasticLogging/IElasticLogging.cs +++ b/ElasticLogging/IElasticLogging.cs @@ -6,7 +6,7 @@ namespace ElasticLogging { - public interface IElasticLogging + public interface ILogger { void Debug(string message); Task DebugAsync(string message);