console QML Type

Provides methods for logging and debugging. More...

Import Statement: import scripting .

Methods

  • void log(string value)

Detailed Description

You can use the console object to print log information about installer functions to the console. The following example uses the console object log method and installer object installer::isUpdater(), installer::isUninstaller(), and installer::isPackageManager() methods to display a message that indicates whether the maintenance tool is currently being used to update, remove, or add components.

 onPackageManagerCoreTypeChanged = function()
 {
     console.log("Is Updater: " + installer.isUpdater());
     console.log("Is Uninstaller: " + installer.isUninstaller());
     console.log("Is Package Manager: " + installer.isPackageManager());
 }

Method Documentation

void log(string value)

Prints the string specified by value to the console.