diff --git a/Wox.Infrastructure/Logger/Log.cs b/Wox.Infrastructure/Logger/Log.cs index 41be9cff29..7e9f8acdb7 100644 --- a/Wox.Infrastructure/Logger/Log.cs +++ b/Wox.Infrastructure/Logger/Log.cs @@ -25,7 +25,11 @@ namespace Wox.Infrastructure.Logger configuration.AddTarget("file", target); target.FileName = "${specialfolder:folder=ApplicationData}/" + Constant.Wox + "/" + DirectoryName + "/" + Constant.Version + "/${shortdate}.txt"; +#if DEBUG + var rule = new LoggingRule("*", LogLevel.Debug, target); +#else var rule = new LoggingRule("*", LogLevel.Info, target); +#endif configuration.LoggingRules.Add(rule); LogManager.Configuration = configuration; }