inline buildlogger

This commit is contained in:
Collin M. Barrett 2018-08-17 18:25:28 -05:00
parent e0ed827885
commit 59a5482a0a

View file

@ -22,7 +22,7 @@ public static void Main()
BuildConfigRoot();
BuildServiceProvider();
snapshotService = serviceProvider.GetService<SnapshotService>();
using (BuildLogger())
using (logger = new Logger(configRoot[AppInsightsKeyConfig]))
{
CaptureSnapshots(BatchSize);
}
@ -41,8 +41,6 @@ private static void BuildServiceProvider()
serviceProvider = serviceCollection.BuildServiceProvider();
}
private static Logger BuildLogger() => logger = new Logger(configRoot[AppInsightsKeyConfig]);
private static void CaptureSnapshots(int batchSize)
{
logger.Log("Capturing FilterList snapshots...");