How should the logger process its arguments #326
Replies: 3 comments
-
Right now, only plain strings are logged, so your solution will work. But it may make sense to change the log function signature to In #325 |
Beta Was this translation helpful? Give feedback.
-
@stefaanMLB having changed the argument type to |
Beta Was this translation helpful? Give feedback.
-
I love json-able logs. |
Beta Was this translation helpful? Give feedback.
-
I need to log the umzug messages to Winston.
Setting logger=console.log works fine. Assigning a Winston logger doesn't work.
For now I'm using
logging: (...args: any[]) =>log.info(args[0]);
which works but doesn't seem right.Could you document exactly how the logging function should process the
...args
arguments ?Beta Was this translation helpful? Give feedback.
All reactions