From 54e32ad809efa1bfceaa87e3d4e33fe3fdc5d2a6 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 2 Sep 2023 07:44:12 -0400 Subject: [Lingo] Added logging to file --- Lingo.asl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lingo.asl') diff --git a/Lingo.asl b/Lingo.asl index ddd18d8..55a1df8 100644 --- a/Lingo.asl +++ b/Lingo.asl @@ -9,8 +9,13 @@ state("Lingo") {} startup { + // Relative to Livesplit.exe + vars.logFilePath = Directory.GetCurrentDirectory() + "\\autosplitter_lingo.log"; vars.log = (Action)((string logLine) => { print("[Lingo ASL] " + logLine); + string time = System.DateTime.Now.ToString("dd/MM/yy hh:mm:ss.fff"); + // AppendAllText will create the file if it doesn't exist. + System.IO.File.AppendAllText(vars.logFilePath, time + ": " + logLine + "\r\n"); }); settings.Add("every",false,"Split on every panel solve"); -- cgit 1.4.1