log (data, title, quiet) documon/src/log.js 32
xpath documon.log
file documon/src/log.js

Writes to the console. Will accept an object or array as well as string, boolena and other and prepare them for proper presentation to the console.

Parameters
data
any

A string, array or object to output

title
string

A title for the message

quiet
type

Disables logging (prevents console output.

Example
var log = require("log");
log(["foo", "bar"], "Some Title", false);

prints:

    --------------------
    Some Title
    --------------------
    [
        'foo',
        'bar'
    ]