diff --git a/README.md b/README.md index b196ff7610d4c395033f1f9d0d48b6aa2e567bd9..78ee80dd5d1fff30893b729f1f5b1443b5820c63 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,6 @@ Note: The options Part may be omitted, as all parts are optional, but using the { name: 'Name of App. Default: Name of BaseFolder', hostname: 'Server Hostname, Default: os.hostname()', - file: 'File to Append Log to', - graylog: [ - { - server: 'graylog-server', - port: 'graylog-port' - } - ] + file: 'File to Append Log to' } ``` \ No newline at end of file diff --git a/index.js b/index.js index fa4e4a6e1e013c114ea697dc40643bc887a4910c..5de346d176b462e55c3b8db6c9084f3f759355d3 100644 --- a/index.js +++ b/index.js @@ -14,14 +14,6 @@ function Log (options) { if (this.options.file) { this.fs = require('fs') } - if (this.options.graylog) { - this.graylog2 = require('graylog2') - this.graylogger = new this.graylog2.graylog({ // eslint-disable-line new-cap - servers: this.options.graylog, - hostname: this.hostname, - facility: this.name - }) - } this.info = function (message) { this.log('INFO', message) } @@ -71,30 +63,6 @@ function Log (options) { } }) } - if (this.options.graylog) { - switch (tag) { - case 'INFO': - this.graylogger.info(message) - break - case 'NOTICE': - this.graylogger.notice(message) - break - case 'WARN': - this.graylogger.warning(message) - break - case 'ERROR': - this.graylogger.error(message) - break - case 'FATAL': - this.graylogger.critical(message) - break - case 'DEBUG': - this.graylogger.debug(message) - break - default: - this.graylogger.notice(message) - } - } } this.getDate = function () { var tzoffset = (new Date()).getTimezoneOffset() * 60000 // offset in milliseconds diff --git a/package.json b/package.json index 43f3dd9e1659bee3d472e5ba3bc6e2a4a4a6ca66..0f663d886fb61a07f4bab64505a2787646746e38 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,5 @@ "author": "Dominik Sigmund", "license": "ISC", "dependencies": { - "graylog2": "^0.2.1" } }