We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86db840 commit 4970d57Copy full SHA for 4970d57
index.js
@@ -22,8 +22,10 @@ module.exports = {
22
//common method for handling logged messages
23
push: logger.methods.push,
24
// setting logger name to Winston logger if it's used
25
- setLoggerName: function () {
26
- CONFIG.SELECTED_LOGGER = CONFIG.WINSTON_LOGGER_VERSION;
+ setLoggerName: function (name) {
+ if (name === 'Winston') {
27
+ CONFIG.SELECTED_LOGGER = CONFIG.WINSTON_LOGGER_VERSION;
28
+ }
29
},
30
31
expressExceptionHandler: exception.expressExceptionHandler
0 commit comments