Skip to content

Commit

Permalink
Add Logger.ahk
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu committed Mar 14, 2018
1 parent 615310f commit e361ea9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Lib/Logger.ahk
Original file line number Diff line number Diff line change
@@ -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
}
}
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1

0 comments on commit e361ea9

Please sign in to comment.