Adds a logger.

import Batch = require("nativescript-batch");

var b = Batch.newBatch(function(ctx) {
    ctx.log("Test");
});

b.batch.addLogger(function(logCtx) {
    console.log(logCtx.message);
});

b.start();