Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to system default path when using "protocol": "unix" #16

Open
briktop opened this issue Oct 1, 2013 · 2 comments
Open

Default to system default path when using "protocol": "unix" #16

briktop opened this issue Oct 1, 2013 · 2 comments

Comments

@briktop
Copy link

briktop commented Oct 1, 2013

When logging via unix datagram sockets, you have to specify a path to write the logs to. It would be a great advantage if the library could find the system default syslog pipe by default.

Per my cursory investigation, this seems to be /dev/log in Linux, /var/run/log in BSD and /var/run/syslog in OSX. I would hope there is a reliable way to determine this at runtime.

@jhnlsn
Copy link

jhnlsn commented Oct 16, 2013

@briktop I'm working with nodejs v0.10.20 and 'unix' is not valid for

new dgram.Socket('unix');

the only valid values are udp4 and udp6, what version of node are you working with to get this to work?

@briktop
Copy link
Author

briktop commented Oct 17, 2013

Right, @johnymonster. winston-syslog depends on the unix-dgram package for this purpose. When protocol is "unix", this package is used to create the socket object: https://github.com/indexzero/winston-syslog/blob/master/lib/winston-syslog.js#L212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants