Closed RobinTail closed 4 months ago
@richardgirges , please review
Hi @RobinTail
Thank u for this PR.
Just one suggestion:
What if you add console
to the defaults, and remove OR in logging function.
If it's ok, I will be happy to merge and publish it.
I can do that, but it will also require me to update some existing tests of debugLog()
utility, @RomanBurunkov
I will let you know once it's done.
Done, @RomanBurunkov .
I made logger
option to be console
by default and removed OR from debugLog()
.
Instead, I added an additional check for the presence of the logger
property, because of the tests that call that method directly. Those I updated as well.
@RomanBurunkov , please review again.
Thank you @RomanBurunkov .
Could you release it as 1.5.0 so I could make another PR to @types/express-fileupload
for describing these changes?
Types updating PR: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/69016 FYI, @RomanBurunkov
I'm using
express-fileupload
for an application having more advanced loggers thanConsole
. I'd like to suggest the feature that enables consumers to configure the logger while preserving theconsole
by default.