setLoggingCurrentLevel( newLoggingLevel ) method

This function sets the logging level.

The logging level set with this function only persists as long as this javascript context does. When the hybrid app is closed, the value set with this function is lost.

Syntax

<static> setLoggingCurrentLevel( newLoggingLevel )

Parameters

Name Type Description
newLoggingLevel number The number representing the new logging level.Must be an integer in the range [1..4]. The higher numbers represent more verbose logging levels from 1 for ERROR level logging up to 4 for DEBUG level logging.

Example

// Set the logging level to debug.
hwc.setLoggingCurrentLevel( 4 );

Source

hwc-comms.js, line 236.