We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logger is required for profiler
Upgraded Winston to 3.12.0 and my tests started failing with an error coming from Winston: "Error: Logger is required for profiler"
I have a process that calls logger.startTimer(), where logger is a child logger of another created via the createLogger method.
This code seems to be the source of the error:
winston/lib/winston/profiler.js
Line 24 in d95c948
My child logger instance's class is DerivedLogger, performing the same checks as the code above I get:
DerivedLogger
console.log( typeof logger !== 'object', Array.isArray(logger), !(logger instanceof Logger), )
Produces false, false, false
false, false, false
console.log(typeof logger, require('util').inspect(logger))
Produces object, DerivedLogger {}
object, DerivedLogger {}
I believe this was introduced via #2226
v3.12.0
v20.11.1
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🔎 Search Terms
Logger is required for profiler
The problem
Upgraded Winston to 3.12.0 and my tests started failing with an error coming from Winston: "Error: Logger is required for profiler"
I have a process that calls logger.startTimer(), where logger is a child logger of another created via the createLogger method.
This code seems to be the source of the error:
winston/lib/winston/profiler.js
Line 24 in d95c948
My child logger instance's class is
DerivedLogger
, performing the same checks as the code above I get:Produces
false, false, false
Produces
object, DerivedLogger {}
I believe this was introduced via #2226
What version of Winston presents the issue?
v3.12.0
What version of Node are you using?
v20.11.1
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: