mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Set the default to log TRACE level log messages
This is just while we're doing in-depth testing.
This commit is contained in:
parent
5aa100802b
commit
63479cae82
@ -91,7 +91,7 @@ namespace DisplayMagician {
|
|||||||
|
|
||||||
// Rules for mapping loggers to targets
|
// Rules for mapping loggers to targets
|
||||||
NLog.LogLevel logLevel = null;
|
NLog.LogLevel logLevel = null;
|
||||||
switch (AppProgramSettings.LogLevel)
|
/*switch (AppProgramSettings.LogLevel)
|
||||||
{
|
{
|
||||||
case "Trace":
|
case "Trace":
|
||||||
logLevel = NLog.LogLevel.Trace;
|
logLevel = NLog.LogLevel.Trace;
|
||||||
@ -111,8 +111,13 @@ namespace DisplayMagician {
|
|||||||
default:
|
default:
|
||||||
logLevel = NLog.LogLevel.Info;
|
logLevel = NLog.LogLevel.Info;
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
// TODO: **************************************** CHANGE THIS *******************************************
|
||||||
|
// Force Logging to TRACE during debg
|
||||||
|
logLevel = NLog.LogLevel.Trace;
|
||||||
|
|
||||||
|
|
||||||
// Create the log file target
|
// Create the log file target
|
||||||
var logfile = new NLog.Targets.FileTarget("logfile")
|
var logfile = new NLog.Targets.FileTarget("logfile")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user