Jump to content

Search the Community

Showing results for tags 'function name'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. 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
×
×
  • Create New...