Hello all, I'm in the process of creating a small project for my company. So I've gone through most of the code so far and am quite happy with the result. Before I show you the code in question, let me tell you, .... am no dev what so ever Well, that said, the code I'm sending is a logger, that I made for my needs. Out of all the functions in it, there are two that I use all the time 'Logger' and 'Error'. Those two will write OK message and KO messages respectively to the proper files. Now let's focus on: Func Error($sError)
Local $eTimeStamp = @MON & "-" & @MDAY & "-" & @YEAR & " -- " & @HOUR & ":" & @MIN & ":" & @SEC & "." & @MSEC & " - " & @ScriptName & " - "
Filewrite($LogError, $eTimeStamp & $sError & @crlf)
EndFuncThe issue I have with this is the "@ScriptName" variable used here which throws the name of my MAIN.au3. What I would like to be able to do, is to log the name of the Function that hanged to make troubleshoot easier. This is the way I'm coding this : Main.au3 - Calls Install.au3Logger.au3UninstallLogger.au3Taking the example above, is there any variable that would write "Install.au3" instead of "Main.au3" or do I have to use a second argument to Error() ? Thanks for taking the time to read this (if you reached this far ) Chris