pino v6.0.0 Release Notes
Release Date: 2020-03-27 // about 4 years ago-
Major changes
- โฌ๏ธ Drops support for no longer maintained versions of Node.js #776 #747
- โ Removes
v
from log lines #623 #620 - ๐ Logs literal
null
#711 #706 - โ Adds formatters for core log components (a powerful new way to customize how log lines are rendered; thank you @delvedor) #775 #764
- ๐ฒ Softens language around the modes of logging available #791 #785
- โ Removes implicit appending of objects to message strings (see below) #795 #793
- Codifies LTS policy going forward #799
๐ Implicit formatting removed #795
๐ Previously, Pino emulated Bunyan's behavior when interpreting logs like:
๐ฒ 1.
log.info('a message', { an: 'object'})
๐ฒ 2.log.info('a', 'silly', 'message')
The old behavior would result in 1 yielding
"msg":"a message {\"an\":\"object\"}"
and 2 yielding
๐"msg":"a silly message"
. As of this release, 1 will yield"msg":"a message"
and 2 will yield"msg":"a"
.๐ To get the same results in Pino v6 as in previous releases actual format identifiers should be provided, e.g.:
๐ฒ 1.
log.info('a message %j', { an: 'object' })
๐ฒ 2.log.info('a %s %s', 'silly', 'message')