This is a migrated thread and some comments may be shown as answers.

How do I add a line feed in Platform Cloud Code log?

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ptw
Top achievements
Rank 1
ptw asked on 18 Nov 2016, 07:14 AM

I'm editing Business Logic  / Cloud code via Telerik platform, and using the the console log to check my code.

Is there a way to add a line feed to the log? 

For example, if I do this:

console.log("var a='+a);
console.log("var b='+b);

Then (excluding the timestamp), I get "var a= 1 var b= 2" on the same line.

I'd prefer the log to be in a more readable form with linebreaks:

var a = 1
var b = 2

Thanks

-Paul

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 22 Nov 2016, 12:58 PM
Hello Paul,

The UI of the cloud code console is designed to put a new line only for new entries, so the logs from a single execution of the cloud function are placed on one line. If you have a lot of values to review from a single entry, you can go to the Logs tab and see the Console Log of the specific entry, as shown in this image.

Regards,
Tsvetina
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
ptw
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or