UpdateLogging.vbs

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

UpdateLogging.vbs is a script that starts, stops, performs rollover, or updates the current Windows event tracing log (ETL) session with new Speech Server settings. The script can be invoked with one of the following actions:

  • Changing the log file location, enabling trace logging, disabling trace logging, modifying the rollover time, or starting a new log file using the Speech Server??Administrator console
  • Modifying the Location, Enabled, or Rollover property in the Windows Management Instrumentation (WMI) LogSettings class instance
  • Scheduled running of the MSSLogTask scheduled task

Syntax

UpdateLogging.vbs [/UpdateWMI]

Modifying UpdateLogging.vbs

UpdateLogging.vbs 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.

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 is called.

About MSSLogTask

MSSLogTask is a scheduled task created by the Speech Server Setup program to run UpdateLogging.vbs at a specified interval every day. By default, the interval is every 60 minutes, which is the default value of the LogSettings.Rollover property. At midnight, MSSLogTask restarts automatically.

When you change Speech Server log settings (using the Speech Server??Administrator console or LogSettings properties), the settings for MssLogTask are modified as well. To view the MSSLogTask settings, click Start, point to Control Panel, point to Scheduled Tasks, and then click MSSLogTask.

Important

Trace logging for Speech Server cannot start if MSSLogTask is missing. To recreate MSSLogTask, follow the corrective action steps in Administrator Console Error Messages under the message "The MSSLogTask scheduled task could not be found" or reinstall Speech Server.

See Also

Reference

LogSettings Class

Other Resources

Logging Administration
Installing Speech Server