Skip to content
a unix socket transport for winston
Find file
Latest commit c061e37 @bryanpaluch added connect annouce
Failed to load latest commit information.
lib added connect annouce
test first commit
.gitignore first commit
.travis.yml first commit
package.json added connect annouce added installation instructions

winston socket

A socket transport for winston .

For use with a unix socket server


npm install winston-socket


  var winston = require('winston');


  winston.add(winston.transports.Socket, options);

Transport by default looks at /tmp/winston.sock for a unix socket. This can be changed with options.path.

Socket server can go up and down without crashing the logger. If the logger gets disconnected it will wait a default 3000 msecs.

options.timeout can adjust the reconnect time. can rename the logger so if you multiple applications using one unix socket the output will be reasonable.

The socket server can then be used use to have multiple winston loggers talk to it and to then pipe the output to a or websocket emitter.

Something went wrong with that request. Please try again.