From e493cda473a9aeacc75170897d06710de44496c5 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 09:04:50 +0200 Subject: [PATCH] logging for report new matches --- discord/report_new_matches.ps1 | 3 ++- logs/REAMD.MD | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 logs/REAMD.MD diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index 91a2253..aa73f3d 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -1,4 +1,5 @@ -Start-Transcript -Path '/var/log/dtch/report_new_matches.log' -Append +$logprefix = get-date -Format ddMMyyy_HHmmss +Start-Transcript -Path "../logs/report_new_matches_$logprefix.log" -Append if ($PSScriptRoot.length -eq 0) { $scriptroot = Get-Location diff --git a/logs/REAMD.MD b/logs/REAMD.MD new file mode 100644 index 0000000..940fe81 --- /dev/null +++ b/logs/REAMD.MD @@ -0,0 +1 @@ +Location for logs \ No newline at end of file