logger prints/output only first argument in v 3.2.0
See original GitHub issueEnvironment
winston
version?-
winston@3.2.0
-
node -v
outputs:-
v10.13.0
-
- Operating System? (macOS)
Problem
logger.info('First', 'Second')
is printing only First
in the console and in File.
With 3.0
, this is printing both arguments, First
& Second
. (Second
in the new line)
What do you expect to happen instead?
Expecting output as
First
Second
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to Log Full Stack Trace with Winston 3?
For winston version 3.2.0+ , following will add stacktrace to log output: import { createLogger, format, transports } from 'winston'; ...
Read more >Logging - Zephyr Project Documentation
The logging API provides a common interface to process messages issued by developers. Messages are passed through a frontend and are then ...
Read more >Documentation / Core MI Functions - 3.2 - openSIPS
Prints the version string of a runningOpenSIPS. Arguments: none. Output: one item (named "Server") containing the version string. Examples of usage: # opensips- ......
Read more >Troubleshoot Azure Monitor Application Insights for Java
This log file is the first place to check for hints about any issues you might ... check to make sure that your...
Read more >cypress-terminal-report - npm
Better terminal and file output for cypress test logs. ... this amount of logs will be printed only around failing commands.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is such a breaking change…
The partial solution is:
But
util.format('First', 'Second')
will outputFirst Second
, the same asconsole.log
and winston@2. Why winston@3 with format splat break this behavior?