locked
Read Logs in Azure Mobile Services. RRS feed

  • Question

  • User-302920879 posted

    Hi,

    I have a requirement to schedule jobs and write JavaScript to execute few StoredProcedures on their respective intervals 5Min, 7Mins and 30Mins.

    for this requirement I want read the Logs in JavaScript code from Azure MobileServices -> Logs of the Scheduled Job.

    Can anyone please give the solution to read the Logs, so that I can get the TimeStamp of the log ran and run the remaining StoredProcedure.

    Tuesday, September 30, 2014 4:54 AM

Answers

  • User1938476581 posted

    Hi,

    You can refer to the code below to read results:

    query.where(function (name, level) {
        return this.assignee == name && this.difficulty == level;
     }, "david", "medium").read().done(function (results) {
        alert(JSON.stringify(results));
     }, function (err) {
        alert("Error: " + err);
     });

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 7, 2014 2:56 AM