How to disable colorize formatter of winston in molecular #1093
Unanswered
mahipalgurjar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
When I integrate the winston logging in molecular framework as followed the link; https://moleculer.services/docs/0.14/logging.html
with following configuration of winston logger in molecular.config.js file see below.
In the molecular.log file message show some Unicode characters like (\u001b[35m) as see below.
{"level":"info","message":" \u001b[35m PUT\u001b[39m \u001b[36m/api/products/:id/quantity/decrease\u001b[39m\u001b[90m => \u001b[39mproducts.decreaseQuantity","mod":"api","nodeID":"tcl60017680609-21992","ns":"","svc":"api"}
When I follow the winston documentation I found that disable the winston.format.colorize() property so now I change my molecular.config.js file as below
But still its not fixed,
Could you please anyone give me idea how I can fixed it in Moleculer fromwork. Anyone example will be useful.
Beta Was this translation helpful? Give feedback.
All reactions