Forum Discussion

i404's avatar
i404
Contributor
13 years ago

How do you log the function/routine name you called?

Hi Guys,



If I called Sub Login(username,password), and I want to have this logged with the function/routine name that I have executed/called, e.g. Login passed. I have to write log.event([what shall I put here?] & "passed")



Thanks in advanced.



Regards

Lee

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    With VBScript, there's not a native way of doing so.  You would have to, in each procedure, simply add in the procedure name in the call to log the event.