Logs a message.
import Batch = require("nativescript-batch");
Batch.newBatch((ctx) => {
ctx.log("This is a log message from 1st operation.");
})
.then((ctx) => {
ctx.log("This is a log message from second operation.");
})
.addLogger(function(logCtx) {
console.log(logCtx.message);
})
.start();