Logging APIThe Logging API is used to access the client console logger. The following Logging APIs are available:
ice.log.error(logger, message, exception)Logs a ERROR level message to the console or log window. Usage: try { ... } catch (e) { ice.log.error(ice.log, 'Error occurred', e); } Parameters:
ice.log.childLogger(parentLogger, categoryName)Creates an new child logger that logs its messages into the defined category. Usage: var a = ice.log.childLogger(ice.log, 'A'); ice.log.debug(a, 'message in category A'); //outputs -- [window.A] debug: message in category A var aa = ice.log.childLogger(a, 'AA'); ice.log.warn(aa, 'message in category AA'); //outputs -- [window.A.AA] warning: message in category AA Parameters:
|
Logging API
© Copyright 2021 ICEsoft Technologies Canada Corp.