Skip to content

Commit a75a5c4

Browse files
committed
inline initialization
1 parent e8abd7c commit a75a5c4

File tree

1 file changed

+5
-3
lines changed
  • Flow.Launcher.Infrastructure/Logger

1 file changed

+5
-3
lines changed

Flow.Launcher.Infrastructure/Logger/Log.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ static Log()
2626
}
2727

2828
var configuration = new LoggingConfiguration();
29-
var fileTarget = new FileTarget();
30-
fileTarget.FileName = CurrentLogDirectory.Replace(@"\", "/") + "/${shortdate}.txt";
31-
29+
var fileTarget = new FileTarget
30+
{
31+
FileName = CurrentLogDirectory.Replace(@"\", "/") + "/${shortdate}.txt"
32+
};
33+
3234
var fileTargetASyncWrapper = new AsyncTargetWrapper(fileTarget);
3335
configuration.AddTarget("file", fileTargetASyncWrapper);
3436
#if DEBUG

0 commit comments

Comments
 (0)