diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-09-02 07:44:12 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-09-02 07:44:12 -0400 |
commit | 54e32ad809efa1bfceaa87e3d4e33fe3fdc5d2a6 (patch) | |
tree | 24e39d7f2a6dec8616f278f37c187140593425a3 | |
parent | 2320c6830e25bf0faad94dbe4bc39361fe4774f0 (diff) | |
download | autosplitters-54e32ad809efa1bfceaa87e3d4e33fe3fdc5d2a6.tar.gz autosplitters-54e32ad809efa1bfceaa87e3d4e33fe3fdc5d2a6.tar.bz2 autosplitters-54e32ad809efa1bfceaa87e3d4e33fe3fdc5d2a6.zip |
[Lingo] Added logging to file
-rw-r--r-- | Lingo.asl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lingo.asl b/Lingo.asl index ddd18d8..55a1df8 100644 --- a/Lingo.asl +++ b/Lingo.asl | |||
@@ -9,8 +9,13 @@ state("Lingo") {} | |||
9 | 9 | ||
10 | startup | 10 | startup |
11 | { | 11 | { |
12 | // Relative to Livesplit.exe | ||
13 | vars.logFilePath = Directory.GetCurrentDirectory() + "\\autosplitter_lingo.log"; | ||
12 | vars.log = (Action<string>)((string logLine) => { | 14 | vars.log = (Action<string>)((string logLine) => { |
13 | print("[Lingo ASL] " + logLine); | 15 | print("[Lingo ASL] " + logLine); |
16 | string time = System.DateTime.Now.ToString("dd/MM/yy hh:mm:ss.fff"); | ||
17 | // AppendAllText will create the file if it doesn't exist. | ||
18 | System.IO.File.AppendAllText(vars.logFilePath, time + ": " + logLine + "\r\n"); | ||
14 | }); | 19 | }); |
15 | 20 | ||
16 | settings.Add("every",false,"Split on every panel solve"); | 21 | settings.Add("every",false,"Split on every panel solve"); |