[custom-plugin-lib] Is it possible to customize the logged date format? #481
-
What product are you having troubles with?Marketplace What Console version are you using?v12 DescriptionHi guys, We don't like so much the epoch (I like it honestly, but not while troubleshooting microservices) because it's not human readable (unless you are so good with math). Is it possible to customize it or we need to open a Feature Request? Thanks in advance. Actual OutcomeNot human readable date Expected OutcomeHuman readable date |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The formatter is a property of Pino: in your case the best option is the one specifically for the timestamp. You want to pass to Pino this option:
The correct place is lc39, specifically here I think. |
Beta Was this translation helpful? Give feedback.
Yep I tried, you can specify this in your
index.js
In this way
lc39
will use this function as the Pino configuration object.This is the output:
Maybe your best option is something like:
So you can get both versions for automatic tools and for humans 😃