Sets the default text file logger to be debug only & for the JSON file to log verbose

This commit is contained in:
Warren
2018-08-15 17:43:20 +01:00
parent 93a69d89e8
commit 7f53786461

View File

@@ -5,6 +5,7 @@ using System.Threading;
using Umbraco.Core.Configuration;
using Umbraco.Core.Diagnostics;
using Serilog;
using Serilog.Events;
using Umbraco.Core.Logging.SerilogExtensions;
namespace Umbraco.Core.Logging
@@ -40,7 +41,7 @@ namespace Umbraco.Core.Logging
var loggerConfig = new LoggerConfiguration();
loggerConfig
.MinimalConfiguration()
.OutputDefaultTextFile()
.OutputDefaultTextFile(LogEventLevel.Debug)
.OutputDefaultJsonFile()
.ReadFromConfigFile()
.ReadFromUserConfigFile();