feat: loggers + search engines models

This commit is contained in:
Nicolas Giard
2018-09-01 15:15:44 -04:00
parent 9c6a4f6c20
commit 5919d14670
31 changed files with 433 additions and 40 deletions

View File

@@ -0,0 +1,14 @@
key: papertrail
title: Papertrail
description: Frustration-free log management.
author: requarks.io
logo: https://static.requarks.io/logo/papertrail.svg
website: https://papertrailapp.com/
defaultLevel: warn
props:
host:
type: String
title: Host
port:
type: Number
title: Port

View File

@@ -5,9 +5,6 @@ const winston = require('winston')
// ------------------------------------
module.exports = {
key: 'papertrail',
title: 'Papertrail',
props: ['host', 'port'],
init (logger, conf) {
require('winston-papertrail').Papertrail // eslint-disable-line no-unused-expressions
logger.add(new winston.transports.Papertrail({