This library uses AutoHotkey Version 2. (Tested with AutoHotkey v2.0.2)
Simple logging with AutoHotkey - supporting some features as provided in log4j or log4Perl
Include log4ahk.ahk
from the lib
folder into your project using standard AutoHotkey-include methods.
#include <log4ahk.ahk>
; Initialize the logger
; + set the layout for the messages
; + choose the desired loglevel
logger := Log4ahk("[%V] #%M# %m", logger.loglevel.INFO)
; Set the appenders to be logged to: STDOUT
logger.appenders.push(Log4ahk.Appenderstdout())
logger.trace("TraceTest") ; This Message should not be logged due to choosen loglevel
logger.info("InfoTest") ; This Message should be logged!
For usage examples have a look at the files log4ahk_demoXX.ahk.
For more detailed documentation have a look into the source file log4ahk.ahk or online html-documentation Documentation needs update