Getrennte log files
This commit is contained in:
@@ -44,7 +44,7 @@ namespace DakotaSender
|
||||
= int.Parse(ConfigurationManager.AppSettings.Get("ProcessWaitForExitMs") ?? "10000");
|
||||
|
||||
public static string LogPath { get; }
|
||||
= ConfigurationManager.AppSettings.Get("LogPath") ?? @"C:\GkvAbrechnung\Sender\log.txt";
|
||||
= ConfigurationManager.AppSettings.Get("LogPath") ?? @"C:\GkvAbrechnung\Sender\logs";
|
||||
|
||||
public static string GkvSecretKey { get; set; } = ConfigurationManager.AppSettings.Get("GkvSecretKey");
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@ namespace DakotaSender
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
FileStream filestream = new FileStream(Config.LogPath, FileMode.Append);
|
||||
var log4day = Path.Combine(Config.LogPath, $"log_{DateTime.Today:yyyyMMdd}.txt");
|
||||
|
||||
FileStream filestream = new FileStream(log4day, FileMode.Append);
|
||||
var streamwriter = new StreamWriter(filestream);
|
||||
streamwriter.AutoFlush = true;
|
||||
|
||||
@@ -370,12 +372,12 @@ namespace DakotaSender
|
||||
|
||||
static void HandleResults()
|
||||
{
|
||||
PrintLine("Sende Ergebnisse:");
|
||||
PrintSeperator();
|
||||
|
||||
if (ten2user2req is null || !ten2user2req.Any())
|
||||
return;
|
||||
|
||||
PrintLine("Sende Ergebnisse:");
|
||||
PrintSeperator();
|
||||
|
||||
var task = HandleResultsAsync();
|
||||
|
||||
task.Wait();
|
||||
|
||||
Reference in New Issue
Block a user