Hey, I'm the founder of Metadash.
Previously I was at Better.com and Glean AI.
My interests include design, tech, and startups.
I call New York City home.
This project forked from iwater/winston-rsyslog
A (working) rsyslog transport for winston
License: MIT License
Hey, I'm the founder of Metadash.
Previously I was at Better.com and Glean AI.
My interests include design, tech, and startups.
I call New York City home.
No logs were being written to rsyslog even though everything looked correct. I was able to test that the tcp port was open using nc. I traced through the code and realized the default levelMapping was {} which could be a problem. The docs say the default value should have been "winston.config.syslog.levelMapping" but the code said otherwise. I tried finding this object and it did not exist but I did find winston.config.syslog.levels. As soon as I added levelMappings: winston.config.syslog.levels to the options, the logs were forwarded as expected.
The default should be updated to use this value and the docs should be updated.
I'm using "winston": "2.4.0" and "winston-rsyslog2": "0.0.5"
Hello,
I'm the author of the winston-log-and-exit, and have some users of this package have complained that this package doesn't work with winston-log-and-exit
. As you may know, cleanly exiting a process and retaining the last few log entries is a perennial problem for winston users, which is confounded by poor documentation on how Winston identifies streaming loggers, and what API streaming loggers should implement.
In short, to work with winston-log-and-exit
a custom Streaming Transport needs a ._stream
attribute, has an .end()
method, and which issues a "finish" event when all the messages that were logged before the .end()
method was called.
Cheers,
-Jason
I am starting seeing this warning after the upgrade to winston 3.0:
rsyslog is a legacy winston transport. Consider upgrading: - Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md
Can you consider upgrading this library?
Thanks!
Hi there
Firstly thanks for making this project.
I am able to get everything working fine (logging to facility 16, i.e. local0). This creates a log file such as /var/log/local0.log
Is there a way we can use a facility so the log goes to /var/log/[custom name or name of my app] ?
Thanks
Hi, logging been working a treat then some odd "undefined" behaviour today.
var winston = require('winston');
require('winston-rsyslog2');
console.dir(winston.transports.Rsyslog);
// > undefined
package.json dependencies
"dependencies": {
"winston": "^1.0.2",
"winston-rsyslog2": "0.0.5"
}
any ideas why the Rsyslog transport would be undefined?
The function was removed by this commit:
Now "npm test" fails because of the missing function.
I'm looking at repairing it now.
While syslogd
are rsyslogd
are different syslog servers, they speak a common protocol. Thus it seems that winston-syslog
could speak to rsyslog
servers, while winston-rsyslog2
could speak to a syslog
server.
We should consider if the projects could be merged. For example winston-syslog
code to check the connection, and if the connection fails, retry the connection several times while queuing the logs until the connection comes back up. We lack that feature. We have the feature to map winston log levels to syslog log levels, but that hasn't landed yet in `winston-syslog'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.