Back to listing

winston-tcp-graylog

Other Solutions

graylog support for winston based on gelf-pro (module for node.js)

nskazki
free!

Published

25 Feb 09:11

Last Push

27 Apr 10:23

Marketplace Rating

Discussion

1 Comments

Your Rating

Please sign in to rate this add-on.

Comments

atrioom almost 3 years ago

What is the `import WinstonTcpGraylog from '../src'` doing? It's never used in the code that follows and it assumes I have a folder `src` somewhere lying around? I tried implementing winston graylog like this and that does not seem to work:
```
var winston = require('winston');
// Only implement the graylog server transport, when the graylog Server IP is set.
var transports = [];
transports.push(new (require('winston-tcp-graylog'))({
name: 'tcpGraylog',
handleExceptions: false,
gelfPro: {
adapterName: 'tcp',
adapterOptions: {
protocol: 'tcp',
host: '93.189.28.58',
port: 12201
}
}
}));
var grayLogger = new winston.Logger({
transports: transports
});
```
I seem to miss something.... Any suggestions? Thanks

Please sign in to comment.

Back to listing