1
votes

Is it possible to make the framework print output of jQuery.sap.log.* functions to standard browser console without opening SAP Diagnostics window?

According to OpenUI Logging and Tracing of Developer Guide it should work without opening Diagnistics, but it isn't working, at least within Chrome Dev 48.0.2564.116 m.

1

1 Answers

3
votes

The framework prints all log statements that are within the current loglevel.

I think by default that is ERROR, therefore you should see red error messages originating from UI5 in your console if there are errors.

To enable other messages, adapt the loglevel to the level that you need by running (for example):

jQuery.sap.log.setLevel(jQuery.sap.log.Level.DEBUG);

Also see: https://openui5.netweaver.ondemand.com/#docs/api/symbols/jQuery.sap.log.html#.setLevel