0.0.3 • Published 12 years ago

winston-socket v0.0.3

Weekly downloads
35
License
-
Repository
github
Last release
12 years ago

#winston socket

A socket transport for winston .

For use with a unix socket server

Installation

npm install winston-socket

Usage

  var winston = require('winston');
  
  require('winston-socket').Socket;
  
  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.

options.name 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 socket.io or websocket emitter.

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago