Skip to content

Commit

Permalink
restify server + bunyan setup
Browse files Browse the repository at this point in the history
  • Loading branch information
manuartero committed Jan 26, 2021
1 parent 90db1ac commit 6cfb713
Show file tree
Hide file tree
Showing 4 changed files with 783 additions and 25 deletions.
20 changes: 19 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
const Logger = require('bunyan')
const { name, version } = require('./package.json')
const server = require('./src/server')

console.dir({ name, version })
const appInfo = `${name}@${version}`
const log = new Logger({
name: appInfo
})

log.info('[STARTUP]', appInfo)

server.start({
appInfo,
log,
onMessage: () => {
log.info('TODO onMessage')
},
onNotify: () => {
log.info('TODO onNotify')
}
})
Loading

0 comments on commit 6cfb713

Please sign in to comment.