$procache→consoleLog()
Log message to javacript console (console.log)
JS console logs will only appear if in PW debug mode, ProCache is in debug mode, or if current user is a superuser.
Usage
// basic usage
$array = $procache->consoleLog($a);
// usage with all arguments
$array = $procache->consoleLog($a, string $b = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$a | string bool | Label or message |
$b (optional) | string | Message if $a is a label, otherwise omit |
Return value
array
$4.0.7
$procache methods and properties
API reference based on ProcessWire core version 3.0.251