Comments (6)
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.
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.
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.
Thanks. I'll take a look at this.
from winston-syslog.
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.
@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)
- Winston-syslog doesn't handle connection loss? HOT 5
- Support critical as loglevel
- mTLS connection is not working
- Syslog logs not flushed until app exits, and multiples are concatenated? HOT 6
- Logging via UNIX domains sockets is not quite conformant
- App doesn't stop when I use this library HOT 4
- Timestamp is incorrect when milliseconds < 100
- Usage: please correct "type" options HOT 1
- InFlight counter going negative
- Error healthCheck(dgram)
- Occasional ECONNRESET and EPIPE errors HOT 1
- No logs when running in docker container HOT 1
- Unable to change Destination via Syslog Configuration HOT 1
- cloudflare workers support HOT 7
- winston-syslog hardcodes log level to 'info' HOT 1
- Unable to change appName without reinstantiation HOT 1
- Error Handling on Creating TCP Socket HOT 1
- Winston containers problem with winston-syslog and solution HOT 2
- Implementing in nuxt 3
- Dependency glossy is unmaintained HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winston-syslog.