Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hello there!
After moving over to Winston 3 from Winston 2, I noticed that Winston was now appending all extra logging arguments as "Symbol(splats)" in the final "message" log object.
Specific actions have to be taken in order to forward those splats to Loggly, as extra arguments are not anymore being forwarded to Loggly.
Depending on the logging pattern in a project, splats could contain an Error object, a plain JS object, or a string message. For instance, calling
log.error("An error occured:", new Error("Nah!"))would set "An error occured:" asmessage.message, but would not forward theErrorobject to Loggly. This PR addresses this "regression" after an upgrade from Winston 2 to 3.Notice:
splatsis an array of all extra values passed to the logging function. Providing 4 arguments to the logging call would induce a splats object of length 3.