UpdateLogging

UpdateLogging

Starts, stops, performs rollover, or updates the current trace session with new settings. Invoked by Windows Management Instrumentation (WMI) and the MSSLogTask scheduled task.

Supports the Log Configuration tab of the Speech Engine Services (SES) and Telephony Application Services (TAS) properties pages (see Configuring Logging Options).

Syntax

UpdateLogging.vbs [/UpdateWMI]

This script should never be directly called. However, it is possible to add code to this script to perform a custom action after each rollover. To do this, insert the code inside the OnRollover function, as shown here:

Function OnRollover()
   OnRollover = 0
   'insert code here
End Function

After modifying UpdateLogging.vbs, invoke it with the /UpdateWMI argument. This informs the WMI service that the script has been modified, and ensures that the modified version will be called.

Note  Setting logging options creates a scheduled task called MssLogTask. (To view scheduled tasks, choose Scheduled Tasks from Control Panel.) MssLogTask invokes UpdateLogging.vbs. UpdateLogging.vbs is also invoked if the location of the log file changes, and whenever logging is enabled or disabled.

Conventions

Microsoft Speech Server (MSS) administrative scripts use the following conventions:

  • Bold indicates required syntax elements, for example, ConfigurationDisplayProperties.vbs.

  • Italics indicate variable names, for example, object.

  • Square brackets surrounding an argument indicate the argument is optional, for example, [object].

  • Enter server names without the slash characters, for example, "localhost" rather than "\\localhost".

For information about how to run a script from the command window or using Microsoft Management Console (MMC), see Running Server Scripts.