logging function

Post your working scripts, libraries and tools
User avatar
SL5
Posts: 292
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

logging function

24 Feb 2018, 03:19

using:

Code: [Select all] [Download] GeSHi © Codebox Plus

 lll( A_LineNumber, A_ScriptName, " STARTING something ")

it saves into log\MyScript.txt

Code: [Select all] [Download] GeSHi © Codebox Plus

08:58:10   MyScript.ahk>25
STARTING something


config ingnore lists:

Code: [Select all] [Download] GeSHi © Codebox Plus

;<<<<<<<< g_ignReg <<<< 180224082501 <<<< 24.02.2018 08:25:01 <<<<
global g_ignReg := { saveLogFiles: {ln:"", scriptName:"", text:"HotKeys"} } ;;;; regEx ignoreConfigList ;;;;
; please use it like this: if( 1<RegExMatch(0 . ln, g_ignReg["saveLogFiles"]["ln"]) || ......
; OR: the regEx .^ never match anything. if you use .^ i recomand using: if( RegExMatch(ln, g_ignReg["saveLogFiles"]["ln"]) || ......
;>>>>>>>> g_ignReg >>>> 180224082506 >>>> 24.02.2018 08:25:06 >>>>


BTW i dont feel preety with this:
1<RegExMatch(0 .
i tried to use false and empty for values but with no success. empty is matching in every RegExMatch. false is converted to 0 and this is often matching. :think:
==> the regEx .^ never match anything. if you use .^ i recomand using: if( RegExMatch(ln, g_ignReg["saveLogFiles"]["ln"]) || ......

and if you may automatically set a lll in front of each function definitions, this is may helpful for you to find your functioin defs:
https://github.com/sl5net/global-Intell ... bal.txt#L4

Code: [Select all] [Download] GeSHi © Codebox Plus

^[ ]*?\w[\w\d_]{5,}\s*\([^()+<>]+\)[\s\S]{0,5}?\{



Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Bill and 27 guests