Hi, I'm using winston to send the log stream to the winstond
var winstond = require('winstond');
var server = winstond.nssocket.createServer({
services: ['collect', 'query', 'stream'],
port: 9003
});
server.add(winstond.transports.File, {
filename: __dirname + '/foo.log'
});
server.listen();
in the code above instead of getting a stream the logs got save directly on the file.
actually i want to emit all the logs coming to the winstond server(from the application server where winston resides)to the client side through socket.io
as a solution i know that i can write custom transport and emit the logs from application server to another server but i want to understand how does winstond is receiving the stream.