Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
log file
#1
Is there a way to save the log data to a file? When I run a macro the log shows the output and errors but I don't see any way to save this. thanks.
#2
Create this function.
Function RedirectQmOutputToFile
Code:
Copy      Help
;/
function# str&s reserved

if &s
,LogFile s 0 "$desktop$\qm out redirect.txt"
;else ;;called to clear QM output
,;del- "$desktop$\qm out redirect.txt"

And execute this code once. It redirects QM output to a file. You can put this in function named init2, it runs when QM starts. If init2 does not exist, create.
Macro Macro2486
Code:
Copy      Help
RedirectQmOutput &RedirectQmOutputToFile

Then all QM output text will be shown in QM and saved in file.
#3
Thanks. Works perfectly.
#4
Hello,
I am new to Quick Macro. So far I am loving it. One help needed.

I am trying to save output log to a text file and it's working fine for me.

Now I want to pass the location of the log file from the actual program. Can you please let me know whether it's possible?
I currently have multiple exe file for different tasks and I want to have different log file for each of them. I will also prefer to add timestamp to the log file name.

Thank you.


Forum Jump:


Users browsing this thread: 1 Guest(s)