Hello,
This is a very basic question. I am sorry if this is a repeat question. I searched the forums and could not find an answer.
I want to log each step of my script. In logging tab, I
a) checkmarked Log Progress of Macro
b) specified the filename C:\Users\\Documents\MacroLogs.txt
c) Log level: Log Start and completion of each step
I used one of the sample script. However once the script is executed, only the timestamp of the file is updated. MacroLogs.txt file is empty. What am I doing wrong here. Thanks much for your help. Should I use WriteLn in my script to log details? I thought the logging would do it for me.
Here's the sample script I am running:
MessageModal>This macro will gather some basic statistics and present them in a Message Box. This is a useful example of how to use variables. %CRLF% %CRLF%Press OK to continue.
GetDate>todays_date
GetTime>current_time
MessageModal>Date : %todays_date% %CRLF%Time : %current_time% %CRLF%Operating System : %OS_VER% %CRLF%Windows Directory : %WIN_DIR% %CRLF%System Directory : %SYS_DIR% %CRLF%Username : %USER_NAME% %CRLF%Computer Name : %COMPUTER_NAME% %CRLF%MSched Version: %MSCHED_VER%
Fundamental question on logging
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
When you are in the editor and run your script you are DEBUGGING. Logs aren't written to while in debug mode. Similarly schedules don't work and neither do hot keys. For those things, save and close the script.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?