Skip to content

Commit

Permalink
SFI-1032:Replace good logging with hapi-pino
Browse files Browse the repository at this point in the history
  • Loading branch information
reddy1praveen committed Sep 6, 2021
1 parent 3cd7048 commit b7da1b0
Show file tree
Hide file tree
Showing 3 changed files with 467 additions and 239 deletions.
30 changes: 6 additions & 24 deletions app/plugins/logging.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
const config = require('../config')

module.exports = {
plugin: require('@hapi/good'),
plugin: require('hapi-pino'),
options: {
ops: {
interval: 1000
},
reporters: {
console: [
{
module: '@hapi/good-squeeze',
name: 'Squeeze',
args: [
{
log: '*',
error: '*',
response: '*',
request: '*'
}
]
},
{
module: '@hapi/good-console'
},
'stdout'
]
}
logPayload: true,
prettyPrint: config.isDev,
level: config.isDev ? 'debug' : 'warn'
}
}
Loading

0 comments on commit b7da1b0

Please sign in to comment.