winston-gelf-pro
I know. Why yet another winston GELF/Graylog transport? Because all of the others are pretty old and
seemingly not well supported. One or two came close, but I needed UDP support and I wanted modern
gelf-pro support for transform
and broadcast
. So here we are.
Usage
This transport should work with both winston 2.x and 3.x. For 2.x, do something like
npm install winston@2npm install winston-gelf-pro
Then:
const winston = ;const package = ;; let transports = ; transports; log = new winstonLogger transports: transports;
See gelf-pro for the options you can specify in "gelfPro".