inline initialization

This commit is contained in:
Kevin Zhang 2021-06-11 12:44:48 +08:00 committed by 张弘韬
parent e8abd7c23f
commit a75a5c4660

View file

@ -26,9 +26,11 @@ namespace Flow.Launcher.Infrastructure.Logger
}
var configuration = new LoggingConfiguration();
var fileTarget = new FileTarget();
fileTarget.FileName = CurrentLogDirectory.Replace(@"\", "/") + "/${shortdate}.txt";
var fileTarget = new FileTarget
{
FileName = CurrentLogDirectory.Replace(@"\", "/") + "/${shortdate}.txt"
};
var fileTargetASyncWrapper = new AsyncTargetWrapper(fileTarget);
configuration.AddTarget("file", fileTargetASyncWrapper);
#if DEBUG