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')