3.0.1 • Published 7 years ago

sawyer v3.0.1

Weekly downloads
49
License
MIT
Repository
github
Last release
7 years ago

Sawyer

##Define Sys Logs

var sawyer = require('sawyer')({
  syslogEnvs: ['staging', 'production'], // default
  syslog:{
    host: 'mydnshere',
    port: '1234',
    protocol: 'udp4',
    app_name: 'myapp',
    json: true
  }
});

If for some reason you need to close the socket opened by syslog. (You may need to do this in order for the process to exit.) You can use the returned instance of sawyer to so.

// using the instance from above
sawyer.transports.syslog.close();

Doing this will make sure the message queue is emptied before closing the socket.

3.0.1

7 years ago

3.0.0

8 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago