UNPKG

logbook

Version:

Log all data passing through process.stdout and process.stderr

16 lines (15 loc) 350 B
//loggly example ! require('../').configure({ loggly: { log: true, err: true, customerToken: "abcdefgh-85fe-41f7-9f09-5b018f68d691", tags: ["my-app"], meta: { foo: 42, bar: function() { return Math.random() > 0.5 ? "heads" : "tails"; } } } }); console.log("hello loggly"); console.error("hello loggly :O !!");