Coder Social home page Coder Social logo

Comments (6)

squeeks avatar squeeks commented on June 26, 2024

I quickly hacked in some Unix socket support with my own fork at squeeks/winston-syslog@8d561977391ba300716e , could you please test it out and see if it's working for you? If it works fine I'll clean it up and make a pull request out of it, and if it doesn't, show me how you're using it and we'll see what's going on.

from winston-syslog.

gitfy avatar gitfy commented on June 26, 2024

The problems happens my before it reaches your fix. The port binding happens in the connect call.

In this place :
return this.isDgram
? this.socket.bind(this.port, this.host)
: this.socket.connect(this.port, this.host);

from winston-syslog.

squeeks avatar squeeks commented on June 26, 2024

Sorry about that, I should have trawled through all of it instead of rushing. It'd be great if you could quickly fast-forward your clone (if you made one) to squeeks/winston-syslog@fb09dbb2b53c5f3fc7de as I should have fixed the binding as well. If it works for you, let me know and I'll nag @indexzero with a pull request.

from winston-syslog.

indexzero avatar indexzero commented on June 26, 2024

Thanks. I'll take a look at this.

from winston-syslog.

gitfy avatar gitfy commented on June 26, 2024

I tested the update. I don't get any exception. But i don't see any logs in the system.log file.

I initialized the Sys log addon with no options assumed it will work with default settings. With that i didn't see anything.

Then, i tried with the following options :
"protocol" : 'unix_dgram',
"pid" : "/var/run/syslog.pid"

This also didn't show me any log in the system log. Am i missing any parameters to be passed.

from winston-syslog.

indexzero avatar indexzero commented on June 26, 2024

@gitfy This has been merged in and should be resolved.

There was one commit which did not make it in from @squeeks fork (https://github.com/squeeks/winston-syslog/commit/e2d24f1dc8db50dca9319e0b537964ddd8844141). Specifically winston should not be a dependency of winston-syslog. For a single "plugin" module it works, but once you have multiple plugin modules all specifying the same dependency you can end up in situations where there is more than one copy of winston installed in your node_modules directory structure.

If you're interested in the discussion going on for npm in this see: https://github.com/isaacs/npm/issues/930

from winston-syslog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.