Disable logging

25 views
Skip to first unread message

Hüseyin Kozan

unread,
Dec 28, 2018, 4:40:48 AM12/28/18
to restify
Hi,

Search at repo, here and search engine but could not found. How can I complately or partiaally disable logging ?

Thanks.

--
Hüseyin Kozan

Hüseyin Kozan

unread,
Dec 28, 2018, 5:30:37 AM12/28/18
to restify
Is this correct way:

const bunyan = require("bunyan");
const server = restify.createServer({
  log
: bunyan.createLogger({
    name
: "api",
    streams
: [{
      stream
: process.stdout,
      level
: bunyan.FATAL + 1
   
}]
 
})
});


Reply all
Reply to author
Forward
0 new messages