An open-source entry in TopGit's GitHub warehouse: winstonjs/winston-syslog, 139 stars, JavaScript. A syslog transport for winston
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
tldr;?: To break the winston codebase into small modules that work together.
The winston codebase has been growing significantly with contributions and other logging transports. This is awesome. However, taking a ton of additional dependencies just to do something simple like logging to the Console and a File is overkill.
Usage
To use the Syslog transport in winston, you simply need to require it and then either add it to an existing winston logger or pass an instance to a new winston logger:
In addition to the options accepted by the syslog (compliant with RFC 3164 and RFC 5424), the Riak transport also accepts the following options. It is worth noting that the riak-js debug option is set to false by default:
host: The host running syslogd, defaults to localhost.
port: The port on the host that syslog is running on, defaults to syslogd's default port.
protocol: The network protocol to log over (e.g. tcp4, udp4, tls4, unix, unix-connect, etc), defaults to udp4.
protocolOptions: Socket connect options. See net.socket.connect for available options.
path: The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).
pid: PID of the process that log messages are coming from (Default process.pid).
facility: Syslog facility to use (Default: local0).
localhost: Host to indicate that log messages are coming from (Default: localhost).
type: The type of the syslog protocol to use (Default: BSD, also valid: '3164', '5424', 'RFC3164' or 'RFC5424').
app_name: The name of the application (Default: process.title).
eol: The end of line character to be added to the end of the message
(Default: Message without modifications).
secureProtocol: See https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions for more information on this option,
passed through from this constructor.
ciphers: See https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions for more information on this option,
passed through from this constructor.
ecdhCurve: See https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions for more information on this option,
passed through from this constructor.
rejectUnauthorized: See https://nodejs.org/api/tls.html#new-tlstlssocketsocket-options for more information on this option,
passed through from this constructor.
requestCert: See https://nodejs.org/api/tls.html#new-tlstlssocketsocket-options for more information on this option,
passed through from this constructor.
Metadata: Logged as string compiled by glossy.
By default, syslog messages are produced by glossy, but you can override that behavior by providing a
custom Producer instance via the customProducer setting.
Log Levels
Because syslog only allows a subset of the levels available in winston, levels that do not match will be ignored. Therefore, in order to use winston-syslog effectively, you should indicate to winston that you want to use the syslog levels:
The Syslog transport will only log to the level that are available in the syslog protocol. These are (in increasing order of severity):
debug
info
notice
warning
err
crit
alert
emerg
Syslog Configuration
You will have to configure your syslog server to accept TCP or UDP connections.
This is usually done in /etc/syslog-ng.conf. Let's say you have an app called fnord
and want to use TCP, the configuration would look something like this:
Now if you have another app, called bnord, create similar destination and filter configurations for it, and specify a new log statement, with the same source:
How many stars does winstonjs/winston-syslog have?
winstonjs/winston-syslog has 139 GitHub stars — refresh the page for the live number, or check github.com/winstonjs/winston-syslog. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is winstonjs/winston-syslog open source?
Yes — winstonjs/winston-syslog ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/winstonjs/winston-syslog.
What is winstonjs/winston-syslog?
winstonjs/winston-syslog (winstonjs/winston-syslog) is a JavaScript project on GitHub. From the project's own README: A syslog transport for winston
Where can I see winstonjs/winston-syslog in action?
The project maintains a homepage at http://github.com/winstonjs/winston-syslog. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about winstonjs/winston-syslog?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/winstonjs/winston-syslog is the definitive source.
Read full README in the tab above.
Curious whether winston-syslog is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about winston-syslog.