Logging not working on Win7

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Logging not working on Win7

Post by Jerry Thomas » Mon Sep 27, 2010 9:04 pm

I am trying to get script logging to work.

Machine is running Windows7 (64), Scheduler version = 12.8.

-I have enabled 'Log Progress of Macro'.
-The Log file exists.
-I have tried all 3 options 'before', 'after' and 'start and completion of step'.

The log file is in c:\users\public\public documents so it should be available.

Any suggestions?
Thanks,
Jerry

[email protected]

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Sep 28, 2010 8:57 am

Don't know why it's not working for you. I'm unable to replicate with an identical setup. Using Win7 x64 and v12.8 and also set my log file to:

c:\users\public\public documents\mylog.txt

Ran the macro. Log file was created and populated as expected and I could view it by clicking the log file toolbar button.

How are you running the macro? Note that if running from the command line or via a compiled macro you will need to pass the log file on the command line (/LOGFILE=) or with a compiled macro the logfile option can be compiled into it via the compiler options.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Post by Jerry Thomas » Tue Sep 28, 2010 4:15 pm

I have not compiled this yet.
I am stepping through or just running.
Thanks,
Jerry

[email protected]

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Sep 28, 2010 4:17 pm

Ah. Logging is not active during debugging. When running/stepping in the editor you are debugging. Run it from outside the editor and logging will be active.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts