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
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