gelf-pro
Version:
The Graylog Extended Log Format for the Node.js
18 lines (15 loc) • 446 B
JavaScript
/**
* 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
*/
;
module.exports = {
from: function (arrayBuffer, byteOffset, length) {
return Buffer.from
? Buffer.from(arrayBuffer, byteOffset, length)
: new Buffer(arrayBuffer, byteOffset, length);
}
};