Skip to content

Commit ffbc72f

Browse files
committed
Fix logging
1 parent 63f7b30 commit ffbc72f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"fs": "0.0.1-security",
2727
"good": "^7.2.0",
2828
"good-console": "^6.4.0",
29+
"good-squeeze": "^5.0.2",
2930
"hapi": "^16.1.1",
3031
"hapi-auth-jwt2": "^7.2.4",
3132
"hapi-swagger": "^7.7.0",

src/plugins/logger/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ export default (): IPlugin => {
99
interval: 1000
1010
},
1111
reporters: {
12-
consoleReporter: [
13-
{
14-
module: 'good-console'
15-
}
16-
]
12+
consoleReporter: [{
13+
module: 'good-squeeze',
14+
name: 'Squeeze',
15+
args: [{ error: '*', log: '*', response: '*', request: '*' }]
16+
}, {
17+
module: 'good-console'
18+
}, 'stdout']
1719
}
1820
};
1921

0 commit comments

Comments
 (0)