4.x to 5.x
Last updated
Was this helpful?
Last updated
Was this helpful?
With version 5.x better-logging now adheres to the standard for dates and time stamps. This brings with it some changes to the message formatting context object.
The string format of ctx.date
has changed from DD/MM/YYYY
to YYYY-MM-DD
.
The introduction of a unified ctx.time
has rendered ctx.time12
and ctx.time24
redundant, and they have there for been removed. The string format of the new unified ctx.time
is as follows hh:mm:ss.mmm
where the additional mmm
at the end stands for milliseconds.