feat: loggers + search engines models
This commit is contained in:
14
server/modules/logging/papertrail/definition.yml
Normal file
14
server/modules/logging/papertrail/definition.yml
Normal 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
|
@@ -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({
|
||||
|
Reference in New Issue
Block a user