diff --git a/index.js b/index.js index e131532..f2fa408 100644 --- a/index.js +++ b/index.js @@ -40,16 +40,6 @@ module.exports = (overrides) => { enabled: enabledReporters.includes('console') } }, - sentry: { - reporter: require('logr-sentry'), - options: { - environment: process.env.NODE_ENV || 'development', - enabled: process.env.SENTRY_DSN ? true : false, - dsn: process.env.SENTRY_DSN, - logger: process.env.SENTRY_LOGGER ? process.env.SENTRY_LOGGER : 'logr', - filter: process.env.LOGR_SENTRY_FILTER ? process.env.LOGR_SENTRY_FILTER.split(',') : ['error'] - } - }, slack: { reporter: require('logr-slack'), options: { diff --git a/package.json b/package.json index bbd076e..164bd3b 100644 --- a/package.json +++ b/package.json @@ -13,21 +13,20 @@ "cov": "tap test/*.test.js --cov --coverage-report=lcov" }, "dependencies": { - "aug": "^2.0.1", + "aug": "^3.0.1", "logr": "^2.16.0", "logr-console-color": "^1.4.0", "logr-flat": "^3.2.2", "logr-json": "^0.1.0", - "logr-logfmt": "^1.1.3", + "logr-logfmt": "^1.2.1", "logr-reporter-bell": "0.0.1", - "logr-sentry": "^1.1.0", - "logr-slack": "^1.2.0" + "logr-slack": "^2.0.0" }, "devDependencies": { "eslint": "^5.16.0", "eslint-config-firstandthird": "^4.3.0", - "eslint-plugin-import": "^2.17.2", - "tap": "^13.1.2" + "eslint-plugin-import": "^2.17.3", + "tap": "^14.2.2" }, "keywords": [ "logr", diff --git a/test/reporters.test.js b/test/reporters.test.js index 7eca833..ce1f2e4 100644 --- a/test/reporters.test.js +++ b/test/reporters.test.js @@ -46,23 +46,6 @@ test('reporter - use env var to enable bell', (t) => { delete process.env.LOGR; }); -test('SENTRY_DSN and LOGR_SENTRY_FILTER', (t) => { - process.env.SENTRY_DSN = 'https://key@localhost:8080/dummy'; - process.env.LOGR_SENTRY_FILTER = 'debug,error,info'; - const logs = []; - const log = logrAll({ - environment: 'test', - logger: 'logr-test', - logger(msg) { - logs.push(msg); - }, - }); - log(['debug'], { value: 'hi' }); - t.end(); - delete process.env.SENTRY_DSN; - delete process.env.LOGR_SENTRY_FILTER; -}); - test('SLACK_HOOK', (t) => { process.env.SLACK_HOOK = 'https://key@localhost:8080/dummy'; process.env.LOGR_SLACK_FILTER = 'debug,error,info';