Skip to content

Commit

Permalink
helps to use custom log as long as statisfies the logger interface (#208
Browse files Browse the repository at this point in the history
)
  • Loading branch information
veeramarni authored and StarpTech committed May 19, 2018
1 parent f524bc2 commit 38a66f2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/hemera/lib/configScheme.js
Expand Up @@ -26,15 +26,16 @@ module.exports = Joi.object().keys({
logger: Joi.alternatives().try(
Joi.object()
.keys({
info: Joi.func().minArity(1),
error: Joi.func().minArity(1),
debug: Joi.func().minArity(1),
fatal: Joi.func().minArity(1),
warn: Joi.func().minArity(1),
trace: Joi.func().minArity(1),
child: Joi.func().minArity(1)
info: Joi.func(),
error: Joi.func(),
debug: Joi.func(),
fatal: Joi.func(),
warn: Joi.func(),
trace: Joi.func(),
child: Joi.func()
})
.requiredKeys('info', 'error', 'debug', 'fatal', 'warn', 'trace'),
.requiredKeys('info', 'error', 'debug', 'fatal', 'warn', 'trace')
.unknown(),
Joi.object().type(Stream)
),
// The error serialization options
Expand Down

0 comments on commit 38a66f2

Please sign in to comment.