You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The logger factory builds a logger per IoC target, and when there are more than 10 targets then node will display the following warning:
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.
The text was updated successfully, but these errors were encountered: