feat: loggers + search engines models
This commit is contained in:
8
server/modules/logging/airbrake/definition.yml
Normal file
8
server/modules/logging/airbrake/definition.yml
Normal 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: {}
|
9
server/modules/logging/airbrake/logger.js
Normal file
9
server/modules/logging/airbrake/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// Airbrake
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
12
server/modules/logging/bugsnag/definition.yml
Normal file
12
server/modules/logging/bugsnag/definition.yml
Normal 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
|
@@ -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'
|
||||
|
@@ -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
|
||||
}))
|
||||
}
|
||||
}
|
8
server/modules/logging/disk/definition.yml
Normal file
8
server/modules/logging/disk/definition.yml
Normal 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: {}
|
9
server/modules/logging/disk/logger.js
Normal file
9
server/modules/logging/disk/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// Disk
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
8
server/modules/logging/eventlog/definition.yml
Normal file
8
server/modules/logging/eventlog/definition.yml
Normal 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: {}
|
9
server/modules/logging/eventlog/logger.js
Normal file
9
server/modules/logging/eventlog/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// Windows Event Log
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
16
server/modules/logging/loggly/definition.yml
Normal file
16
server/modules/logging/loggly/definition.yml
Normal 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
|
@@ -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({
|
||||
|
8
server/modules/logging/logstash/definition.yml
Normal file
8
server/modules/logging/logstash/definition.yml
Normal 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: {}
|
9
server/modules/logging/logstash/logger.js
Normal file
9
server/modules/logging/logstash/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// Logstash
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
8
server/modules/logging/newrelic/definition.yml
Normal file
8
server/modules/logging/newrelic/definition.yml
Normal 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: {}
|
9
server/modules/logging/newrelic/logger.js
Normal file
9
server/modules/logging/newrelic/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// New Relic
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
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({
|
||||
|
8
server/modules/logging/raygun/definition.yml
Normal file
8
server/modules/logging/raygun/definition.yml
Normal 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: {}
|
9
server/modules/logging/raygun/logger.js
Normal file
9
server/modules/logging/raygun/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// Raygun
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
11
server/modules/logging/rollbar/definition.yml
Normal file
11
server/modules/logging/rollbar/definition.yml
Normal 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
|
@@ -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'
|
||||
|
11
server/modules/logging/sentry/definition.yml
Normal file
11
server/modules/logging/sentry/definition.yml
Normal 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
|
@@ -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'
|
||||
|
8
server/modules/logging/syslog/definition.yml
Normal file
8
server/modules/logging/syslog/definition.yml
Normal 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: {}
|
9
server/modules/logging/syslog/logger.js
Normal file
9
server/modules/logging/syslog/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// ------------------------------------
|
||||
// Syslog
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (logger, conf) {
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user