How to turn off Statistica Debug log report window?

How to turn off Statistica Debug log report window?

book

Article ID: KB0079229

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.0 and higher

Description

Whenever I opened Statistica application or executed certain workspaces/SVB macros, a Statistica Debug log report window always pops out. How do I turn off the debug log report window?

Issue/Introduction

How to turn off Statistica Debug log report window?

Environment

Windows

Resolution

1. Whenever I opened Statistica application, a Statistica Debug log report window pops out. How do I turn it off?

>> If user runs Statistica from the Statistica shortcut, right click the shortcut icon and select "Properties" from drop-down options. In the "Properties" dialog, check if there is any Debug log option (e.g. /logreport ) specified at the "Target" textbox. If the debug log option is specified at this Statistica shortcut, whenever Statistica application is started, the debug logging is enabled with the options specified as in the Shortcut Target. 

User-added image

To turn it off, change the debug log option to "/nolog" at Statistica shortcut "Target",
Or log the debug events to a local directory instead of popping up a separate window using option /logpath="c:\logdir\" /loglevel=4

User-added image

>> If user runs Statistica from command line execution, make sure the right debug log report option is set. 

example with debug log report window popping: "C:\Program Files\Statistica\Statistica 13\statist.exe" /logreport

User-added image

example with debug log report option turned off: "C:\Program Files\Statistica\Statistica 13\statist.exe" /nolog
example to log debug events to a local directory instead of popping a report window: "C:\Program Files\Statistica\Statistica 13\statist.exe" /logpath="C:\logdir\" /loglevel=4

User-added image

2. When I executed certain workspaces/SVB macro workflow, a Statistica Debug log report window always pops out. How do I turn it off?

Please check if there is any SVB code in the workspace nodes or SVB macros in the entire workflow, that has specified the Debug Logging information, for example, with coding script similar to below:
Application.DebugLogEnable = True 
Application.DebugReport(scLogEverything)

Take note that coding "Application.DebugReport(scNoLogging)" would still have the Debug log report window popped out but just without any logging information entered. It does not turn off the logging report window. 

User-added image

To turn off the Debug log report, user can modify the coding to:
Application.DebugLogEnable = False
 
Or close the Debug log report window after execution if there is any:
Application.DebugReport.Close

Or log the Debug events to a file in local directory instead of popping a debug report window:
Application.DebugLogEnable=True    
Set L = Application.DebugLog
L.LoggingLevel = scLogLevelDetailed
L.EventLogging = True
L.FileLogging = True
L.LoggingFileName = "C:\log.txt"