Skip to content

Commit

Permalink
readme: fix example to work properly
Browse files Browse the repository at this point in the history
The README example didn't work to me. This commit do changes in README
example to display the logs correctly.
  • Loading branch information
piiih committed Sep 27, 2017
1 parent 043fff0 commit 94d17e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ const log4js = require('log4js').getLogger()
const escriba = require('escriba')
const cuid = require('cuid')

log4js.level = 'info'

const { logger } = escriba({
loggerEngine: log4js,
service: 'api',
sensitive: {
password: {
paths: ['password'],
paths: ['message.password'],
pattern: /\w.*/g,
replacer: '*'
}
Expand Down

0 comments on commit 94d17e3

Please sign in to comment.