diff --git a/src/Umbraco.Core/Logging/Logger.cs b/src/Umbraco.Core/Logging/Logger.cs
index 7b172917d0..072484bdb2 100644
--- a/src/Umbraco.Core/Logging/Logger.cs
+++ b/src/Umbraco.Core/Logging/Logger.cs
@@ -35,7 +35,6 @@ namespace Umbraco.Core.Logging
//add key="serilog:write-to:RollingFile.pathFormat" value="%BASEDIR%\logs\log-{Date}.txt" />
Environment.SetEnvironmentVariable("BASEDIR", AppDomain.CurrentDomain.BaseDirectory, EnvironmentVariableTarget.Process);
-
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug() //Set to highest level of logging (as any sinks may want to restrict it to Errors only)
.Enrich.WithProcessId()
@@ -60,11 +59,10 @@ namespace Umbraco.Core.Logging
//Read any custom user configuration of logging from serilog config file
.ReadFrom.AppSettings(filePath: AppDomain.CurrentDomain.BaseDirectory + @"\config\serilog.config")
.CreateLogger();
-
}
///
- /// Creates a logger with the default log4net configuration discovered (i.e. from the web.config).
+ /// Creates a logger with some pre-definied configuration and remainder from config file
///
/// Used by UmbracoApplicationBase to get its logger.
public static Logger CreateWithDefaultConfiguration()
@@ -178,28 +176,6 @@ namespace Umbraco.Core.Logging
logger?.ForContext(reporting).Warning(messageBuilder(), exception);
}
- /////
- //public void Warn(Type reporting, Exception exception, string format, params object[] args)
- //{
- // var logger = LogManager.GetLogger(reporting);
- // if (logger == null || logger.IsWarnEnabled == false) return;
- // // there is no WarnFormat overload that accepts an exception
- // // format the message the way log4net would do it (see source code LogImpl.cs)
- // var message = new SystemStringFormat(CultureInfo.InvariantCulture, format, args);
- // logger.Warn(message, exception);
- //}
-
- /////
- //public void Warn(Type reporting, Exception exception, string format, params Func