Files
Umbraco-CMS/src/Umbraco.Configuration/CoreDebug.cs

24 lines
1.0 KiB
C#
Raw Normal View History

2017-05-12 14:49:44 +02:00
using System;
2019-11-07 08:00:48 +01:00
using System.Configuration;
2017-05-12 14:49:44 +02:00
namespace Umbraco.Core.Configuration
{
public class CoreDebug : ICoreDebug
2017-05-12 14:49:44 +02:00
{
public CoreDebug()
{
2019-11-07 08:00:48 +01:00
var appSettings = ConfigurationManager.AppSettings;
LogUncompletedScopes = string.Equals("true", appSettings[Constants.AppSettings.Debug.LogUncompletedScopes], StringComparison.OrdinalIgnoreCase);
DumpOnTimeoutThreadAbort = string.Equals("true", appSettings[Constants.AppSettings.Debug.DumpOnTimeoutThreadAbort], StringComparison.OrdinalIgnoreCase);
2017-05-12 14:49:44 +02:00
}
// when true, Scope logs the stack trace for any scope that gets disposed without being completed.
// this helps troubleshooting rogue scopes that we forget to complete
public bool LogUncompletedScopes { get; }
2019-01-22 18:03:39 -05:00
// when true, the Logger creates a mini dump of w3wp in ~/App_Data/MiniDump whenever it logs
2017-05-12 14:49:44 +02:00
// an error due to a ThreadAbortException that is due to a timeout.
public bool DumpOnTimeoutThreadAbort { get; }
}
}