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,8 @@
key: airbrake
title: Airbrake
description: Airbrake is the leading exception reporting service, currently providing error monitoring for 50,000 applications with support for 18 programming languages.
author: requarks.io
logo: https://static.requarks.io/logo/airbrake.svg
website: https://airbrake.io/
defaultLevel: warn
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// Airbrake
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}

View File

@@ -0,0 +1,12 @@
key: bugsnag
title: Bugsnag
description: Bugsnag monitors apps for errors that impact customers & reports all diagnostic data.
author: requarks.io
logo: https://static.requarks.io/logo/bugsnag.svg
website: https://www.bugsnag.com/
defaultLevel: warn
props:
key:
type: String
title: Key
hint: Bugsnag Project Notifier key

View File

@@ -7,9 +7,6 @@ const _ = require('lodash')
// ------------------------------------
module.exports = {
key: 'bugsnag',
title: 'Bugsnag',
props: ['key'],
init (logger, conf) {
let BugsnagLogger = winston.transports.BugsnagLogger = function (options) {
this.name = 'bugsnagLogger'

View File

@@ -1,22 +0,0 @@
const winston = require('winston')
/* global WIKI */
// ------------------------------------
// Console
// ------------------------------------
module.exports = {
key: 'console',
title: 'Console',
props: [],
init (logger, conf) {
logger.add(new winston.transports.Console({
level: WIKI.config.logLevel,
prettyPrint: true,
colorize: true,
silent: false,
timestamp: true
}))
}
}

View File

@@ -0,0 +1,8 @@
key: disk
title: Log Files
description: Outputs log files on local disk.
author: requarks.io
logo: https://static.requarks.io/logo/local-fs.svg
website: https://wiki.js.org
defaultLevel: info
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// Disk
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}

View File

@@ -0,0 +1,8 @@
key: eventlog
title: Windows Event Log
description: Report logs to the Windows Event Log
author: requarks.io
logo: https://static.requarks.io/logo/windows.svg
website: https://wiki.js.org
defaultLevel: warn
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// Windows Event Log
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}

View File

@@ -0,0 +1,16 @@
key: loggly
title: Loggly
description: Log Analysis / Log Management by Loggly, the world's most popular log analysis & monitoring in the cloud.
author: requarks.io
logo: https://static.requarks.io/logo/loggly.svg
website: https://www.loggly.com/
defaultLevel: warn
props:
token:
type: String
title: Token
hint: Loggly Token
subdomain:
type: String
title: Subdomain
hint: Loggly Subdomain

View File

@@ -5,9 +5,6 @@ const winston = require('winston')
// ------------------------------------
module.exports = {
key: 'loggly',
title: 'Loggly',
props: ['token', 'subdomain'],
init (logger, conf) {
require('winston-loggly-bulk')
logger.add(new winston.transports.Loggly({

View File

@@ -0,0 +1,8 @@
key: logstash
title: Logstash
description: Logstash is an open source tool for collecting, parsing, and storing logs for future use.
author: requarks.io
logo: https://static.requarks.io/logo/logstash.svg
website: https://www.elastic.co/products/logstash
defaultLevel: warn
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// Logstash
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}

View File

@@ -0,0 +1,8 @@
key: newrelic
title: New Relic
description: New Relic's digital intelligence platform lets developers, ops, and tech teams measure and monitor the performance of their applications and infrastructure.
author: requarks.io
logo: https://static.requarks.io/logo/newrelic.svg
website: https://newrelic.com/
defaultLevel: warn
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// New Relic
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}

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({

View File

@@ -0,0 +1,8 @@
key: raygun
title: Raygun
description: Error, crash and performance monitoring for software teams.
author: requarks.io
logo: https://static.requarks.io/logo/raygun.svg
website: https://raygun.com/
defaultLevel: warn
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// Raygun
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}

View File

@@ -0,0 +1,11 @@
key: rollbar
title: Rollbar
description: Rollbar provides real-time error alerting & debugging tools for developers.
author: requarks.io
logo: https://static.requarks.io/logo/rollbar.svg
website: https://rollbar.com/
defaultLevel: warn
props:
key:
type: String
title: Key

View File

@@ -7,9 +7,6 @@ const _ = require('lodash')
// ------------------------------------
module.exports = {
key: 'rollbar',
title: 'Rollbar',
props: ['key'],
init (logger, conf) {
let RollbarLogger = winston.transports.RollbarLogger = function (options) {
this.name = 'rollbarLogger'

View File

@@ -0,0 +1,11 @@
key: sentry
title: Sentry
description: Open-source error tracking that helps developers monitor and fix crashes in real time.
author: requarks.io
logo: https://static.requarks.io/logo/sentry.svg
website: https://sentry.io/
defaultLevel: warn
props:
key:
type: String
title: Key

View File

@@ -6,9 +6,6 @@ const winston = require('winston')
// ------------------------------------
module.exports = {
key: 'sentry',
title: 'Sentry',
props: ['key'],
init (logger, conf) {
let SentryLogger = winston.transports.SentryLogger = function (options) {
this.name = 'sentryLogger'

View File

@@ -0,0 +1,8 @@
key: syslog
title: Syslog
description: Syslog is a way for network devices to send event messages to a logging server.
author: requarks.io
logo: https://static.requarks.io/logo/syslog.svg
website: https://wiki.js.org
defaultLevel: warn
props: {}

View File

@@ -0,0 +1,9 @@
// ------------------------------------
// Syslog
// ------------------------------------
module.exports = {
init (logger, conf) {
}
}