Comments (12)
Do you use fluent-logger's winston support?
It is optional, so we don't set the dependency for winston.
Maybe, you need to add the dependency for [email protected]
in your package.json.
from fluent-logger-node.
Nope! Never even heard of that package before. Downgrading to 2.7.0 removed this issue.
from fluent-logger-node.
Can you show me the reproducible code and package.json?
from fluent-logger-node.
Confirming that the version 2.8.0
is broken - aka. not backward compatible.
winstonjs/winston-syslog#95
winston-transport is not a dependency of Winston v2.x, only 3.0.
thus, when requiring winston-transport
HERE, all code which runs with winston v2.x
) is effectively broken if i'm not mistaken.
To fix this issue, I suggest reverting the 2.8
release by releasing 2.8.1
. You can then release the code with winston 3.x
support only as 3.0.0
...
from fluent-logger-node.
Users must set dependencies to winston@2
or winston@3
in their own package.json because fluent-logger's winston support is optional.
from fluent-logger-node.
@okkez , that's not the issue.
Users have already installed winston@2
/ winston@3
explicitly in their project. The problem is that fluent-logger
prior version 2.8.0
worked with winston@2
, however since version 2.8.0
of fluent-logger
which explicitly requires winston-transport
, it breaks the compatibility with winston@2
From winston-transport project page:
Base stream implementations for winston@3 and up.
So based on the above quote, fluent-logger
should not require its users to install the winston-transport
package along basic winston
package
from fluent-logger-node.
This is an example of a public project which fails to build since the [email protected]
release: https://travis-ci.org/BohemiaInteractive/bi-logger/builds/395486808
https://github.com/BohemiaInteractive/bi-logger/tree/develop
from fluent-logger-node.
@okkez , I do no really agree with the solution of stating in the readme that the release 2.8.0
is not backward compatible with the previous 2.7.0
release of fluent-logger
...
Could we please revert the 2.8 release by releasing 2.8.1 which would still support winston@2
and then release the code with winston 3.x support only as v3.0.0
...
Which would follow standard rules of semver (which npm uses) ?
from fluent-logger-node.
I've added note to README.md for this issue.
And I've release new major version 3.0.0.
from fluent-logger-node.
@okkez , Okay, to fix projects which have in their package.json for example:
"dependencies": {
"fluent-logger": "^2.4.0"
}
could we npm unpublish [email protected]
?
Otherwise, npm will automatically update to [email protected]
which is not backward compatible...
Also I'm proposing to update readme like this:
-**NOTE** If you use `winston@2`, you can use `[email protected]` or earlier. If you use `winston@3`, you can use `[email protected]` or later.
+**NOTE** If you use `winston@2`, you can use `[email protected]` or earlier. If you use `winston@3`, you can use `[email protected]` or later.
from fluent-logger-node.
@fogine If you want [email protected]
you can create the PR to 2.8 branch.
Could you create the PR for [email protected]
?
I will merge it and publish [email protected]
.
from fluent-logger-node.
Released v2.8.1
from fluent-logger-node.
Related Issues (20)
- Logger write to socket after it died HOT 1
- A small team looking to iterate on fluent logger node lib HOT 1
- [BUG] Logging multiple tags in PackedForward corrupts packets!
- [BUG] Emit callbacks are re-called when error with ack from Fluent
- error TS2307: Cannot find module 'winston-transport'. HOT 3
- Sender has no support in TypeScript HOT 2
- EnableReconnect not available in winston transport
- App doesn't close when connection failed. HOT 1
- WinstonTransport types don't work anymore after latest release HOT 1
- Trouble with millisecond (or any sub-second) resolution (outdated protocol implementation?)
- Buffering the logs being send to fluentd when fluentd is not available
- Error events take too much time to emit when fluentd is not available HOT 2
- Failed to call _flushSendQueue() during frequent log emit HOT 1
- Sending via udp HOT 1
- Cannot find module 'fluent-logger'
- Cannot read property 'end' of undefined HOT 2
- fluentd winston color formatting doesnt work at transport level HOT 1
- Lambda timeout occurs when using the sender.end() function with setTimeout
- [PROPOSAL] Deprecate in favor of new Fluent Node Logger HOT 1
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added to [FluentTransport]. Use emitter.setMaxListeners() to increase limit
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 fluent-logger-node.