Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Logging

Burnett edited this page May 14, 2016 · 1 revision

Morgan

You may enable the built-in morgan logger.

api = new API({
    'logger' : 'dev'
})

Check morgan for more instructions: https://github.com/expressjs/morgan


Bunyan

bunyan = require('bunyan');
log = bunyan.createLogger({name: "myapp"});

api = new API({
    restify: {
       log: log
    }
})

https://github.com/trentm/node-bunyan

Addons

Clone this wiki locally