Nlog Extensions
GetCurrentLogFile(string targetFileName)
//assume Logger is NLog.Logger
// bytes is he content of current target named 'full'
var bytes = await Logger.GetCurrentLogFileAsync("full");
CycleOverAllFileTargets()
//assume Logger is NLog.Logger
// dict is a Dictionary<string,byte[]> where Key = TargetName and Value = content
var dict = await Logger.GetAllCurrentLogFiles();
GetWholeLogDirectoryAsZip
var bytes = Logger.GetWholeLogDirectoryAsZip();
System.IO.File.WriteAllBytes($@".\lg{DateTime.Now:yymmddHHmmss}.zip", bytes);