openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Tutorial->Navigation->Step 16 and 17 Set Log Level to INFO is missing

Open rajivlund opened this issue 10 years ago • 4 comments

In my case (SAP WebIDE) the default Log Level is 1 = (ERROR). So it needs first to be set to INFO:

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

This conding seems also to be missing in downloadable example code.

step17

https://openui5beta.hana.ondemand.com/#docs/guide/4a063b8250f24d0cbf7c689821df7199.html

https://openui5beta.hana.ondemand.com/#docs/guide/a7932a791adc4a58ae4693400801ea5f.html

rajivlund avatar Feb 01 '16 15:02 rajivlund

Hi Rajivlund, thanks for reporting but I think the default log level meant to be 1. This is the standard level for productive use. Higher levels result into more output which will potentially slow down your application.

Typically you would use a higher log level to find the source of an error. In that case you can increase the log level during runtime, for example by adding URL parameter sap-ui-logLevel=INFO

By the way, you can find a complete list of configuration parameters (such as 'logLevel') under https://openui5beta.hana.ondemand.com/#docs/guide/91f2d03b6f4d1014b6dd926db0e91070.html

Best Regards, Martin

machwitt avatar Feb 02 '16 13:02 machwitt

Hi Martin,

four sure you are right, that default level should be 1. However for the tutorial the level should be set to 3, otherwise the Step 16 and Step 17 do not produce any result. And any person who is learning from tutorial (like myself) gets confused and search the reason for it for hours.

For this reason the tutorial is not correct currently. Will you correct it?

rajivlund avatar Feb 02 '16 13:02 rajivlund

Hi Rajivlund, you convinced me. I opened internal issue 1670070558 for this one. Thank you, Martin

machwitt avatar Feb 03 '16 09:02 machwitt

Hi,

the issue is now solved.

The fix will be available with the UI5 version 1.34.9 and 1.36.4.

Best regards, Jiawei

stopcoder avatar Mar 09 '16 07:03 stopcoder