mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-13 20:46:34 +00:00
feat: improments to setting debug level from console
This commit is contained in:
parent
65800193bb
commit
5b2453c2cc
2 changed files with 14 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ namespace PepperDash.Core.Config
|
||||||
else
|
else
|
||||||
merged.Add("global", template["global"]);
|
merged.Add("global", template["global"]);
|
||||||
|
|
||||||
Debug.Console(2, "MERGED CONFIG RESULT: \x0d\x0a{0}", merged);
|
//Debug.Console(2, "MERGED CONFIG RESULT: \x0d\x0a{0}", merged);
|
||||||
return merged;
|
return merged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -250,9 +250,21 @@ namespace PepperDash.Core
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (levelString.Trim() == "?")
|
||||||
|
{
|
||||||
|
CrestronConsole.ConsoleCommandResponse(
|
||||||
|
$@"Used to set the minimum level of debug messages to be printed to the console:
|
||||||
|
{eDebugLevel.Information.ToString()} = {eDebugLevel.Information}
|
||||||
|
{eDebugLevel.Warning.ToString()} = {eDebugLevel.Warning}
|
||||||
|
{eDebugLevel.Error.ToString()} = {eDebugLevel.Error}
|
||||||
|
{eDebugLevel.Fatal.ToString()} = {eDebugLevel.Fatal}
|
||||||
|
{eDebugLevel.Debug.ToString()} = {eDebugLevel.Debug}
|
||||||
|
{eDebugLevel.Verbose.ToString()} = {eDebugLevel.Verbose}");
|
||||||
|
}
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(levelString.Trim()))
|
if (string.IsNullOrEmpty(levelString.Trim()))
|
||||||
{
|
{
|
||||||
CrestronConsole.ConsoleCommandResponse("AppDebug level = {0}", _consoleLoggingLevelSwitch);
|
CrestronConsole.ConsoleCommandResponse("AppDebug level = {0}", _consoleLoggingLevelSwitch.MinimumLevel);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue