diff --git a/src/config.ts b/src/config.ts index 1d1ed70..eb6b33e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -83,7 +83,7 @@ log.methodFactory = function (methodName, logLevel, loggerName) { var rawMethod = logFactory(methodName, logLevel, loggerName); return function (...messages) { - messageLog = messages.concat(messages); + messageLog = messageLog.concat(messages); rawMethod(...messages); }; };