gelf-stream1.1.1 • Public • Published
Also provides a stream that can be used directly in Bunyan and provides a number of sane mappings.
var split =bunyan =gelfStream =// gelf-stream comes with Bunyan supportvar stream = gelfStreamvar log = bunyanlog // will be sent to the Graylog2 server on localhostlog // will extract file/line numbers toostream // Bunyan doesn't currently end the stream when the program has finished// Or you can use it to stream any sort of object/stringprocessstdin// split into linesprocessstdin
gelfStream.create([host], [port], [options])
gelfStream.forBunyan([host], [port], [options])
With npm do:
npm install gelf-stream