diff --git a/Flow.Launcher.Infrastructure/Logger/Log.cs b/Flow.Launcher.Infrastructure/Logger/Log.cs index 409e4cf6e..b728ce988 100644 --- a/Flow.Launcher.Infrastructure/Logger/Log.cs +++ b/Flow.Launcher.Infrastructure/Logger/Log.cs @@ -16,7 +16,7 @@ namespace Flow.Launcher.Infrastructure.Logger public static string CurrentLogDirectory { get; } -static Log() + static Log() { CurrentLogDirectory = DataLocation.VersionLogDirectory; if (!Directory.Exists(CurrentLogDirectory)) @@ -45,8 +45,6 @@ static Log() Layout = layout }; - - configuration.AddTarget("file", fileTargetASyncWrapper); configuration.AddTarget("debug", debugTarget); @@ -71,9 +69,9 @@ static Log() var nlogLevel = level switch { - LOGLEVEL.None => LogLevel.Off, - LOGLEVEL.Error => LogLevel.Error, - LOGLEVEL.Debug => LogLevel.Debug, + LOGLEVEL.NONE => LogLevel.Off, + LOGLEVEL.ERROR => LogLevel.Error, + LOGLEVEL.DEBUG => LogLevel.Debug, _ => LogLevel.Info }; @@ -167,9 +165,9 @@ static Log() public enum LOGLEVEL { - None, - Error, - Info, - Debug + NONE, + ERROR, + INFO, + DEBUG } } diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 8ac900cf6..23f9047fe 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text.Json.Serialization; using System.Windows; @@ -340,7 +340,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings public DialogJumpFileResultBehaviours DialogJumpFileResultBehaviour { get; set; } = DialogJumpFileResultBehaviours.FullPath; [JsonConverter(typeof(JsonStringEnumConverter))] - public LOGLEVEL LogLevel { get; set; } = LOGLEVEL.Info; + public LOGLEVEL LogLevel { get; set; } = LOGLEVEL.INFO; /// /// when false Alphabet static service will always return empty results diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 2d6810197..f7fd0c8e5 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -459,13 +459,13 @@ Wizard User Data Location User settings and installed plugins are saved in the user data folder. This location may vary depending on whether it's in portable mode or not. -Open Folder + Open Folder Advanced Log Level - None - Error - Info - Debug + Silent + Error + Info + Debug Setting Window Font