4.x to 5.x
Message formatting
With version 5.x better-logging now adheres to the ISO8601 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 fromDD/MM/YYYY
toYYYY-MM-DD
.The introduction of a unified
ctx.time
has renderedctx.time12
andctx.time24
redundant, and they have there for been removed. The string format of the new unifiedctx.time
is as followshh:mm:ss.mmm
where the additionalmmm
at the end stands for milliseconds.
Last updated