From e361ea9c837812758f678c1b4fa9c450e5f11cd9 Mon Sep 17 00:00:00 2001 From: Gore Liu Date: Wed, 14 Mar 2018 17:07:20 +0800 Subject: [PATCH] Add Logger.ahk --- Lib/Logger.ahk | 15 +++++++++++++++ VERSION | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Lib/Logger.ahk diff --git a/Lib/Logger.ahk b/Lib/Logger.ahk new file mode 100644 index 0000000..62d88e9 --- /dev/null +++ b/Lib/Logger.ahk @@ -0,0 +1,15 @@ +; log := new Logger("test.log") +; log.Debug("test") + +class Logger +{ + __New(filename) + { + this.filename := filename + } + + Debug(msg) + { + FileAppend, % A_Now . " " . msg . "`n", % this.filename + } +} diff --git a/VERSION b/VERSION index 26aaba0..6085e94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 +1.2.1