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

Thread is closed for posting
2 posts, 0 answers
  1. ptw
    ptw avatar
    27 posts
    Member since:
    Sep 2015

    Posted 18 Nov 2016 Link to this post

    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



  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 22 Nov 2016 Link to this post

    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.

    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
Back to Top