Log Method

PocketBrowser 3.x API

The Log Method of the Generic ActiveX Object invokes a user defined type log entry method via the PB logger component. With this invocation the PocketBrowser Logger component executes single or multiple log operations (text or http) based on current logger registry configuration settings.

Log (Method of the Generic ActiveX Object) Syntax
var bRetVal = objGeneric.Log(strLogEntry, Severity);

ParametersW Toggle Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description
Default Value
strLogEntry String The string to log (this will be writen to the log as user data) N/A
Severity 1, 2 or 3 1 is low severity, 2 is medium severity, 3 is high priority N/A

axReturns Toggle Return Values

Name Description
bRetVal A boolean value to indicate success or failure of the log operation

Examples Toggle Examples

The Following example invokes a user defined type log entry method via a function:

<script>
var objGeneric = new ActiveXObject('PocketBrowser.Generic');
objGeneric.Log('Scanner data successfully received',1);
</script>
Copy example to clipboard Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows Mobile, Windows CE
Persistence Runs immediately.
Min. Requirements None.