SDK Logging
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
SDK Logging
Hi,
I'm Using the brilliant SDK in version 12 build 30.
How can i turn on logging so that I can trace and make performace profiling on scripts that are in production ?
I know about the system variables _DUMP_VARS and _WRITE_LOG_FILE
But how do I specify the logfile ..? Or where does the SDK put the file by defult?
I'm Using the brilliant SDK in version 12 build 30.
How can i turn on logging so that I can trace and make performace profiling on scripts that are in production ?
I know about the system variables _DUMP_VARS and _WRITE_LOG_FILE
But how do I specify the logfile ..? Or where does the SDK put the file by defult?
Best Regards
Steen Jakobsen
DM Software A/S
Steen Jakobsen
DM Software A/S
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Use the standard /LOGFILE parameter. Pass it in the parms parameter of RunCode or RunScript.
/LOGFILE=c:\path\logfile.log
/LOGFILE=c:\path\logfile.log
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?
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
Hi Marcus,
I tried it at the logging works fine
But I can not se any varibles in the logfile.
I use Let>_DUMP_VARS=1
As you can se in my example there ia an empty secotion of:
18-06-2010 07:39:32:591 - *** START VARIABLES ***
18-06-2010 07:39:32:591 - *** END VARIABLES ***
Also the logfile does not include the code executed in SRT's
Is there an option to specify for that ?
I tried it at the logging works fine

But I can not se any varibles in the logfile.
I use Let>_DUMP_VARS=1
As you can se in my example there ia an empty secotion of:
18-06-2010 07:39:32:591 - *** START VARIABLES ***
18-06-2010 07:39:32:591 - *** END VARIABLES ***
Also the logfile does not include the code executed in SRT's
Is there an option to specify for that ?
Code: Select all
18-06-2010 07:39:32:404 - Started Macro : /* !!! SDK !!! */
OnEvent>KEY_DOWN,Q,5,DMkeyBreak
Let>[<<MacroResult>>]=
Let>DM_DIR=c:\sourcenxt\dialog manager\
Let>DM_ACT_DIR=%TEMP_DIR%DMActLog\
Let>DM_FILE_DIR=%TEMP_DIR%DMFile\
Let>DMBREAK=0
Let>DMSDK=TRUE
Let>StopWaitLoop=FALSE
LibLoad>%DM_DIR%IEAuto.DLL,hIE
Let>DMExitKillProcess=
BlockInput>1
Include>%DM_DIR%DMSub.scp
SRT>DMkeyBreak
Let>DMBREAK=1
GetScreenRes>X2,Y2
ScreenCapture>0,0,%X2%,%Y2%,%DM_ACT_DIR%DMExit.jpg
Exit
END>DMkeyBreak
/* SDK */
Let>_DUMP_VARS=1
let>abc=steen
GoSub>DMMessageModal,hello
Let>_DUMP_VARS=0
/* DM Script to complete the macro */
BlockInput>0
18-06-2010 07:39:32:404 - START: /* !!! SDK !!! */
18-06-2010 07:39:32:404 - END: /* !!! SDK !!! */
18-06-2010 07:39:32:404 - START: OnEvent>KEY_DOWN,Q,5,DMkeyBreak
18-06-2010 07:39:32:404 - END: OnEvent>KEY_DOWN,Q,5,DMkeyBreak
18-06-2010 07:39:32:419 - START: Let>[<<MacroResult>>]=
18-06-2010 07:39:32:419 - END: Let>[<<MacroResult>>]=
18-06-2010 07:39:32:419 - START: Let>DM_DIR=c:\sourcenxt\dialog manager\
18-06-2010 07:39:32:419 - END: Let>DM_DIR=c:\sourcenxt\dialog manager\
18-06-2010 07:39:32:419 - START: Let>DM_ACT_DIR=C:\DOCUME~1\Sj.DM\LOKALE~1\Temp\DMActLog\
18-06-2010 07:39:32:419 - END: Let>DM_ACT_DIR=C:\DOCUME~1\Sj.DM\LOKALE~1\Temp\DMActLog\
18-06-2010 07:39:32:419 - START: Let>DM_FILE_DIR=C:\DOCUME~1\Sj.DM\LOKALE~1\Temp\DMFile\
18-06-2010 07:39:32:419 - END: Let>DM_FILE_DIR=C:\DOCUME~1\Sj.DM\LOKALE~1\Temp\DMFile\
18-06-2010 07:39:32:419 - START: Let>DMBREAK=0
18-06-2010 07:39:32:419 - END: Let>DMBREAK=0
18-06-2010 07:39:32:419 - START: Let>DMSDK=TRUE
18-06-2010 07:39:32:419 - END: Let>DMSDK=TRUE
18-06-2010 07:39:32:435 - START: Let>StopWaitLoop=FALSE
18-06-2010 07:39:32:435 - END: Let>StopWaitLoop=FALSE
18-06-2010 07:39:32:435 - START: LibLoad>c:\sourcenxt\dialog manager\IEAuto.DLL,hIE
18-06-2010 07:39:32:435 - END: LibLoad>c:\sourcenxt\dialog manager\IEAuto.DLL,hIE
18-06-2010 07:39:32:435 - START: Let>DMExitKillProcess=
18-06-2010 07:39:32:435 - END: Let>DMExitKillProcess=
18-06-2010 07:39:32:435 - START: BlockInput>1
18-06-2010 07:39:32:451 - END: BlockInput>1
18-06-2010 07:39:32:451 - START: Include>c:\sourcenxt\dialog manager\DMSub.scp
18-06-2010 07:39:32:451 - END: Include>c:\sourcenxt\dialog manager\DMSub.scp
18-06-2010 07:39:32:451 - START: SRT>DMSendText
18-06-2010 07:39:32:451 - END: SRT>DMSendText
18-06-2010 07:39:32:451 - START:
18-06-2010 07:39:32:451 - END:
18-06-2010 07:39:32:451 - START: SRT>DMFindImagePosXY
18-06-2010 07:39:32:451 - END: SRT>DMFindImagePosXY
18-06-2010 07:39:32:451 - START:
18-06-2010 07:39:32:466 - END:
18-06-2010 07:39:32:466 - START: SRT>DMProgress
18-06-2010 07:39:32:466 - END: SRT>DMProgress
18-06-2010 07:39:32:466 - START:
18-06-2010 07:39:32:466 - END:
18-06-2010 07:39:32:466 - START: SRT>DMMessageModal
18-06-2010 07:39:32:466 - END: SRT>DMMessageModal
18-06-2010 07:39:32:466 - START:
18-06-2010 07:39:32:466 - END:
18-06-2010 07:39:32:482 - START: SRT>DMSetFocus
18-06-2010 07:39:32:482 - END: SRT>DMSetFocus
18-06-2010 07:39:32:482 - START:
18-06-2010 07:39:32:482 - END:
18-06-2010 07:39:32:482 - START: SRT>DMMaximize
18-06-2010 07:39:32:482 - END: SRT>DMMaximize
18-06-2010 07:39:32:482 - START:
18-06-2010 07:39:32:482 - END:
18-06-2010 07:39:32:482 - START: SRT>DMExit
18-06-2010 07:39:32:497 - END: SRT>DMExit
18-06-2010 07:39:32:497 - START:
18-06-2010 07:39:32:497 - END:
18-06-2010 07:39:32:497 - START:
18-06-2010 07:39:32:497 - END:
18-06-2010 07:39:32:497 - START: SRT>DMWaitWindowOpen
18-06-2010 07:39:32:497 - END: SRT>DMWaitWindowOpen
18-06-2010 07:39:32:497 - START:
18-06-2010 07:39:32:513 - END:
18-06-2010 07:39:32:513 - START: SRT>DMWaitIEContainsText
18-06-2010 07:39:32:513 - END: SRT>DMWaitIEContainsText
18-06-2010 07:39:32:513 - START:
18-06-2010 07:39:32:513 - END:
18-06-2010 07:39:32:513 - START:
18-06-2010 07:39:32:529 - END:
18-06-2010 07:39:32:529 - START: SRT>DMWaitScreenImage
18-06-2010 07:39:32:529 - END: SRT>DMWaitScreenImage
18-06-2010 07:39:32:529 - START:
18-06-2010 07:39:32:529 - END:
18-06-2010 07:39:32:529 - START: SRT>DMWait
18-06-2010 07:39:32:529 - END: SRT>DMWait
18-06-2010 07:39:32:529 - START:
18-06-2010 07:39:32:544 - END:
18-06-2010 07:39:32:544 - START: SRT>DMOCR
18-06-2010 07:39:32:544 - END: SRT>DMOCR
18-06-2010 07:39:32:544 - START:
18-06-2010 07:39:32:544 - END:
18-06-2010 07:39:32:544 - START: SRT>DMOCRTable
18-06-2010 07:39:32:544 - END: SRT>DMOCRTable
18-06-2010 07:39:32:560 - START:
18-06-2010 07:39:32:560 - END:
18-06-2010 07:39:32:560 - START: SRT>DMkeyBreak
18-06-2010 07:39:32:560 - END: SRT>DMkeyBreak
18-06-2010 07:39:32:560 - START: /* SDK */
18-06-2010 07:39:32:560 - END: /* SDK */
18-06-2010 07:39:32:560 - START:
18-06-2010 07:39:32:576 - END:
18-06-2010 07:39:32:576 - START:
18-06-2010 07:39:32:576 - END:
18-06-2010 07:39:32:576 - START: Let>_DUMP_VARS=1
18-06-2010 07:39:32:576 - END: Let>_DUMP_VARS=1
18-06-2010 07:39:32:576 - *** START VARIABLES ***
18-06-2010 07:39:32:576 - *** END VARIABLES ***
18-06-2010 07:39:32:591 - START: let>abc=steen
18-06-2010 07:39:32:591 - END: let>abc=steen
18-06-2010 07:39:32:591 - *** START VARIABLES ***
18-06-2010 07:39:32:591 - *** END VARIABLES ***
18-06-2010 07:39:32:591 - START: GoSub>DMMessageModal,hello
18-06-2010 07:39:32:591 - END: GoSub>DMMessageModal,hello
18-06-2010 07:39:32:591 - *** START VARIABLES ***
18-06-2010 07:39:32:607 - *** END VARIABLES ***
18-06-2010 07:39:32:607 - START: BlockInput>0
18-06-2010 07:39:32:607 - END: BlockInput>0
18-06-2010 07:39:32:607 - *** START VARIABLES ***
18-06-2010 07:39:32:607 - *** END VARIABLES ***
18-06-2010 07:39:32:607 - START: MessageModal>hello
18-06-2010 07:39:33:732 - END: MessageModal>hello
18-06-2010 07:39:33:732 - *** START VARIABLES ***
18-06-2010 07:39:33:732 - *** END VARIABLES ***
18-06-2010 07:39:33:732 - START: If>DMSDK=TRUE
18-06-2010 07:39:33:732 - END: If>DMSDK=TRUE
18-06-2010 07:39:33:732 - *** START VARIABLES ***
18-06-2010 07:39:33:748 - *** END VARIABLES ***
18-06-2010 07:39:33:748 - START: BlockInput>1
18-06-2010 07:39:33:748 - END: BlockInput>1
18-06-2010 07:39:33:748 - *** START VARIABLES ***
18-06-2010 07:39:33:748 - *** END VARIABLES ***
18-06-2010 07:39:33:748 - START: EndIf
18-06-2010 07:39:33:763 - END: EndIf
18-06-2010 07:39:33:763 - *** START VARIABLES ***
18-06-2010 07:39:33:763 - *** END VARIABLES ***
18-06-2010 07:39:33:763 - START: END>DMMessageModal
18-06-2010 07:39:33:763 - END: END>DMMessageModal
18-06-2010 07:39:33:763 - *** START VARIABLES ***
18-06-2010 07:39:33:763 - *** END VARIABLES ***
18-06-2010 07:39:33:779 - START: Let>_DUMP_VARS=0
18-06-2010 07:39:33:779 - END: Let>_DUMP_VARS=0
18-06-2010 07:39:33:779 - START:
18-06-2010 07:39:33:779 - END:
18-06-2010 07:39:33:779 - START:
18-06-2010 07:39:33:779 - END:
18-06-2010 07:39:33:779 - START:
18-06-2010 07:39:33:794 - END:
18-06-2010 07:39:33:794 - START: /* DM Script to complete the macro */
18-06-2010 07:39:33:794 - END: /* DM Script to complete the macro */
18-06-2010 07:39:33:794 - START: BlockInput>0
18-06-2010 07:39:33:794 - END: BlockInput>0
18-06-2010 07:39:33:794 - START:
18-06-2010 07:39:33:810 - END:
18-06-2010 07:39:33:810 - START:
18-06-2010 07:39:33:810 - END:
18-06-2010 07:39:33:810 - Finished Macro : /* !!! SDK !!! */
OnEvent>KEY_DOWN,Q,5,DMkeyBreak
Let>[<<MacroResult>>]=
Let>DM_DIR=c:\sourcenxt\dialog manager\
Let>DM_ACT_DIR=%TEMP_DIR%DMActLog\
Let>DM_FILE_DIR=%TEMP_DIR%DMFile\
Let>DMBREAK=0
Let>DMSDK=TRUE
Let>StopWaitLoop=FALSE
LibLoad>%DM_DIR%IEAuto.DLL,hIE
Let>DMExitKillProcess=
BlockInput>1
Include>%DM_DIR%DMSub.scp
SRT>DMkeyBreak
Let>DMBREAK=1
GetScreenRes>X2,Y2
ScreenCapture>0,0,%X2%,%Y2%,%DM_ACT_DIR%DMExit.jpg
Exit
END>DMkeyBreak
/* SDK */
Let>_DUMP_VARS=1
let>abc=steen
GoSub>DMMessageModal,hello
Let>_DUMP_VARS=0
/* DM Script to complete the macro */
BlockInput>0
Best Regards
Steen Jakobsen
DM Software A/S
Steen Jakobsen
DM Software A/S
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hmmm. I need to look at this. Looks like logging isn't fully supported in the SDK then. We'll get it sorted.
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?
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
Super 
I wrote that the code in the SRT's did not make it to the log file. That is incorrect...! sorry..
What i ment was that there is no indication in the logfile that the codelines
executed origins from a SRT. That would be nice.
Is there a way to change the layout and filter the logfile?
May be someone has written that .. otherwise I will write a program that does
p.s. Some day you should se our implemetation of your product .. it works fantastic..

I wrote that the code in the SRT's did not make it to the log file. That is incorrect...! sorry..
What i ment was that there is no indication in the logfile that the codelines
executed origins from a SRT. That would be nice.
Is there a way to change the layout and filter the logfile?
May be someone has written that .. otherwise I will write a program that does

p.s. Some day you should se our implemetation of your product .. it works fantastic..
Best Regards
Steen Jakobsen
DM Software A/S
Steen Jakobsen
DM Software A/S
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Looks like the _DUMP_VARS issue is an issue within the Macro Scheduler 12 script engine rather than just confined to the SDK. We'll have it sorted for the next maintenance update.
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?
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
Ok 
Would it be possible to have a function to start and stop logging instead of haveing to specify an argument and having all the sourcecode included in he logfile...?
Also maybe an option to include/exclude the sourcecode in the logfile..
What I'm lookung for is a way to make the logfile more relevant and to exclude as much "noice information" as possible.
Also maybe only 1 line in the log per statement - stateing the timestamp and the duration..?
I know that I'm asking for new stuff.. Use it if its relevent

Would it be possible to have a function to start and stop logging instead of haveing to specify an argument and having all the sourcecode included in he logfile...?
Also maybe an option to include/exclude the sourcecode in the logfile..
What I'm lookung for is a way to make the logfile more relevant and to exclude as much "noice information" as possible.
Also maybe only 1 line in the log per statement - stateing the timestamp and the duration..?
I know that I'm asking for new stuff.. Use it if its relevent

Best Regards
Steen Jakobsen
DM Software A/S
Steen Jakobsen
DM Software A/S