How to write a Line number in the log file for VBS
I am using a framework in my current assignment, I have driver scripts which is calling the different .vbs files.
Now, I have to create a log file, I am able to add the "date", "time" and "customized message". I want to write the exact line number in the log file so that it will be easy for debugging. Is there a way to write the line number of the .vbs file in the log itself
<Date><Time><Line Number> <customized message>
here I want to add <line number> where the log write function is called.
Please help and let me know if more information(s) is/ are required.
Do you mean the exact line in the VBS fille, if so no.
You have a customised message isn't that enough for debugging?
Error object specification is given below
How To Use the Script Control Error Object
Thanks Marks for the reply....
yes customized message is enough but I had put this query for good to know purpose.
Originally Posted by mwsrosso
the link is informative.
Originally Posted by Yogi_Shukla