Namespace: logging

bcdui. logging

Methods

staticbcdui.logging.logPage(args)

log/logPackage.js, line 49
Useful for performance testing.

Sends a log message with the duration since start of page load to the server perf-log table, once a certain set of DataProviders or all current Renderers are ready Use this for example to trace the duration from page loading start to the end of load of a major or all Renderers to be shown to the user.

Well-known bindingSet bcd_log_pageperformance must be available for using this.

Name Type Description
args Object The parameter map containing
Name Type Default Description
idRef Array.<string> Id(s) of DataProvider(s) to wait for, or wait for all renderers registered at the moment of bcdui.core.ready
logName string idRef optional If provided, this is the name for which the log is written. If not given, idRef is used
addInfo string optional Optionally any text that should be also logged
jsCallback function optional A callback function can be supplied which is triggered once the log has captured data. The callback is called with a parameter object with a duration property, indicating the logged duration