#include #include "log4a.au3" #include "RegSearch.au3" #Region ;**** Logging **** ; Enable logging and don't write to stderr _log4a_SetEnable() ; Write to stderr, set min level to warn, customize message format _log4a_SetErrorStream() _log4a_SetMinLevel($LOG4A_LEVEL_INFO) ; If @compiled Then _log4a_SetMinLevel($LOG4A_LEVEL_WARN) ; Change the min level if the script is compiled _log4a_SetFormat("${date} | ${host} | ${level} | ${message}") #EndRegion ;**** Logging **** Local $var = _RegSearch('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', '.NET Framework 4.') _log4a_Info($var)