From 694e7543bccdbe11696c6f38f919c9b02b1ad4bb Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Sat, 10 Feb 2024 08:47:30 +0300 Subject: [PATCH] Remove outputTemplate parameter --- src/Serilog.Sinks.InMemory/InMemorySinkExtensions.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Serilog.Sinks.InMemory/InMemorySinkExtensions.cs b/src/Serilog.Sinks.InMemory/InMemorySinkExtensions.cs index 5b86a48..7b76f6f 100644 --- a/src/Serilog.Sinks.InMemory/InMemorySinkExtensions.cs +++ b/src/Serilog.Sinks.InMemory/InMemorySinkExtensions.cs @@ -7,8 +7,6 @@ namespace Serilog.Sinks.InMemory { public static class InMemorySinkExtensions { - const string DefaultOutputTemplate = "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"; - /// /// Writes log events to an in-memory log sink. /// @@ -21,11 +19,9 @@ public static class InMemorySinkExtensions public static LoggerConfiguration InMemory( this LoggerSinkConfiguration sinkConfiguration, LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum, - string outputTemplate = DefaultOutputTemplate, LoggingLevelSwitch levelSwitch = null) { if (sinkConfiguration == null) throw new ArgumentNullException(nameof(sinkConfiguration)); - if (outputTemplate == null) throw new ArgumentNullException(nameof(outputTemplate)); return sinkConfiguration.Sink(InMemorySink.Instance, restrictedToMinimumLevel, levelSwitch); }