LogTape 0.11.0 release notes

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

LogTape 0.11.0 introduces enhanced structured logging capabilities and a new JSON Lines formatter, improving how developers handle logs across JavaScript runtimes. The update allows direct object logging, where structured data can be logged by passing an object as the first argument to any log method, and introduces a universal property interpolation with `{*}`. This placeholder streamlines the inclusion of all properties from structured data without explicitly naming each one. Additionally, the new JSON Lines formatter outputs each log record as a JSON object on a separate line, ideal for log aggregation systems and analysis tools, with customizable options for category separation, message formatting, and properties handling. These enhancements aim to make logs more searchable and analyzable, reduce boilerplate, and improve integration with log management systems, all while maintaining backward compatibility and LogTape's zero-dependency promise.

Read more →
4

If you have a fediverse account, you can quote this article from your own instance. Search https://hackers.pub/ap/articles/0197302f-4703-73b0-b216-362dae1c65cd on your instance and quote it. (Note that quoting is not supported in Mastodon.)

3