guzru / winston-sentry Goto Github PK
View Code? Open in Web Editor NEWSentry transport for winston logger for node js
License: MIT License
Sentry transport for winston logger for node js
License: MIT License
Hey guys,
I'm currently using winston-sentry
in an express
application, like below:
var logger = new winston.Logger({
transports: [
new WinstonSentry({
level: 'error',
dsn: '{{ MY_DSN }}'
})
],
exceptionHandlers: [
new winston.transports.File({
filename: '{{ MY_FILENAME }}',
json: false
})
],
exitOnError: false
});
Whenever I call logger.info()
the passed message will be send to Sentry despite the mismatch concerning the log level.
Have you got any hints?
Thanks!
I recently saw that winston-sentry has 'node-uuid' as a dependency. Also 'node-uuid' is now deprecated. When can we expect an update ?
Currently, there is no way to provide error objects in a way that will preserve stack traces in sentry.
For pinpointing production errors, that would be great (and is supported by raven-node).
For anyone that needs a newer maintained version: https://github.com/niftylettuce/winston-raven-sentry
I'm logging everything as expected except for when the log or uncaught error is called by http latter on
Can i use this module with new version of SENTRY DSN format?
Because, i get an error with new DSN format.
But it works with old style DSN.
2018-08-24 16:46 +09:00: [email protected] alert: failed to send exception to sentry: HTTP Error (401): Invalid api key
2018-08-24 16:46 +09:00: Cannot talk to sentry. Reason: Invalid api key
The changelog within the README.md file only goes up to 0.1.2
and the latest release is 0.1.5
.
Can the missing details be filled in please.
I'm facing a situation where I need multiple instances of the transport, to customize the tags each level logged would have. Do you plan to support multiple transports ?
In winston I can do this: logger.error('Some error message', { someProperty : data });
However, when this is wired to the winston-sentry transport, 'someProperty' is discarded at some point.
raven-node reached version 1.0 back in December and newer versions of sentry don't seem to work with pre-1.0 versions of raven anymore.
As per title
Please transfer or give me access? Thanks!
I'll also need access on NPM, my username is niftylettuce
This package isn't working properly for me with Sentry version 8.2. (each error is reported to sentry but they are reported as a regression of a previous error even though they arent related.)
The raven dependency should be updated to version ^2.0.0
Hi,
I've installed the library using NPM and while the version seems to be the latest (i.e. 0.0.4), the code is different than what I see in GitHub:
Installed lib code:
this._sentry.captureError(new Error(msg), extra, function(err) {
Code in GitHub:
this._sentry.captureError(msg, extra, function(err) {
Notice that in GitHub, a new Error object is not created on top of the passed message (which is ok in case an Error is passed)
Add fatal level to error support.
Would be nice to change, the message too.
Let me know if you are open to pr.
We are currently using custom logging levels and would like to set our own levels map.
How can I pass the fingerprint to raven ?
The example given in the README doesn't work:
logger.sentry_client.captureQuery("SELECT * FROM users;");
It was noted in the Readme.
Tested [email protected] and its not work.
some crutch:
// Sentry.prototype.log = function (level, msg, meta, callback) {
Sentry.prototype.log = function (info, callback) {
const { level, message: msg, meta } = info;
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.