-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TCP TLS Support, closes #26
- Loading branch information
Showing
7 changed files
with
71 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Licensed under the MIT License | ||
* | ||
* @author Kanstantsin A Kamkou (2ka.by) | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @link https://github.com/kkamkou/node-gelf-pro | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// required stuff | ||
var path = require('path'), | ||
tls = require('tls'), | ||
tcp = require(path.join(__dirname, 'tcp')); | ||
|
||
// the class itself | ||
var adapter = Object.create(tcp); | ||
|
||
/** | ||
* @param {Object} options | ||
* @returns {tls.TLSSocket} | ||
* @access private | ||
*/ | ||
adapter._instance = function (options) { | ||
return tls.connect(options); | ||
}; | ||
|
||
// exporting outside | ||
module.exports = adapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "gelf-pro", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "./lib/gelf-pro.js", | ||
"types": "./lib/definition.d.ts", | ||
"author": "Kanstantsin Kamkou <[email protected]>", | ||
"description": "The Graylog Extended Log Format for the Node.js", | ||
"keywords": ["graylog", "gelf", "logging", "udp", "tcp"], | ||
"keywords": ["graylog", "gelf", "logging", "udp", "tcp", "tls", "ssl"], | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/kkamkou/node-gelf-pro.git" | ||
|
@@ -25,7 +25,7 @@ | |
"istanbul": "~0.4.3", | ||
"should": "~11.1", | ||
"mocha": "~3.2.0", | ||
"mocha-lcov-reporter": "~1.2.0", | ||
"mocha-lcov-reporter": "~1.3.0", | ||
"coveralls": "~2.11", | ||
"sinon": "2.0.0-pre.4" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters