jQuery.sap.log.debug("onInit");
jQuery.sap.log.error("failed to get id");
Then you can set up your logging level in the javascript, so in dev/qa you could have: jQuery.sap.log.setLevel(jQuery.sap.log.Level.DEBUG);But in production, you can do: jQuery.sap.log.setLevel(jQuery.sap.log.Level.NONE);