node-ts / logger Goto Github PK
View Code? Open in Web Editor NEWA logger adapter that abstracts the logger implementation from the consumer
License: MIT License
A logger adapter that abstracts the logger implementation from the consumer
License: MIT License
The logger factory builds a logger per IoC target, and when there are more than 10 targets then node will display the following warning:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 unpipe listeners added. Use emitter.setMaxListeners() to increase limit
This is because each logger instance defines its own console transport that internally adds listeners. This is related to: winstonjs/winston#1334
That ticket "resolves" the issue by increasing the number of listeners, which just kicks the can down the road. Instead, this fix should attempt to use a singleton logger, but configured to log the target name depending on the logging source.
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
Hi,
I'm trying to implement the autobindLoggers functionality, but it seems the documentation on https://github.com/node-ts/logger/tree/master/packages/logger-core about this is out of date
super (bind => {
// Creates new named loggers for all targets in the container, including the above services
autoBindLoggers(bind)
})
}
Parameter 'bind' implicitly has an 'any' type, but a better type may be inferred from usage.ts(7044)
Type '(bind: any) => void' has no properties in common with type 'ContainerOptions'.ts(2559)
What ís the correct way to implement this?
11.13.4
to 11.13.5
.This version is covered by your current version range and after updating it in your project the build failed.
@types/node is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
1.9.3
to 1.10.0
.This version is covered by your current version range and after updating it in your project the build failed.
tslib is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
This release fixes enumerability in object rest's __rest
helper (see details here) and adds a new __spreadArrays
helper (done as part of a change for more accurate array spreads).
The new version differs by 5 commits.
e1aae12
Update version to '1.10.0'.
ab40523
Add '__spreadArrays' helper (#67)
57efce4
Modified __rest to check if property is enumerable. (#66)
ca03390
Merge pull request #57 from styfle/patch-1
b99cbbc
Update .npmignore
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
24.0.2
to 24.1.0
.This version is covered by your current version range and after updating it in your project the build failed.
ts-jest is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
24.0.11
to 24.0.12
.This version is covered by your current version range and after updating it in your project the build failed.
@types/jest is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
3.13.2
to 3.13.3
.This version is covered by your current version range and after updating it in your project the build failed.
lerna is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 10 commits.
1496beb
chore(release): v3.13.3
09c0103
fix(child-process): Centralize exitCode
translation from string codes into numbers
c599c64
fix(exec): Handle node string error codes before setting process.exitCode (#2031)
ff9c476
fix(docs): Add missing docs for --tag-version-prefix
(#2035)
be65eb7
docs(publish): Fix typo (#2030)
e377eb1
docs: Fix typo (#2028)
ba5d281
docs: Use correct term for file structure (#2021)
80e3b25
chore(website): Update links to https://lerna.js.org/
b181216
chore: Stop using broken stale bot [skip ci]
45f0018
chore: Stop using lock bot [skip ci]
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
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.