| First of all, if that's all you need then by all means, keep doing that. If you need any of the following, maybe consider a library: - First-class TypeScript support (not bolted-on) - Wraps and extends the entire standard API - A convenient chainable API - Log Listeners for capturing log data - Middleware support for plugins and transporting logs - Log annotations such as namespaces, labels, and other meta data - Four formats supported out of the box: - Pretty - Human readable logs that are easy on the eyes
- JSON - Machine readable logs that are compatible with the Bunyan CLI
- Standard - Human readable stdout logs
- Common - Logs that adhere to the Common Log Format
- Everything is customizable and configurable- Tools for caching, filtering, and recalling logs - Support for creating log threads to track data across multiple scopes - Convenient child logger API's If you look at the readme you'll see adze is 8kb bundled and gzipped. It's ESM so it has tree-shaking support. It's tiny. The Vue dependency is for the docs. https://bundlephobia.com/package/adze@2.0.10 |