therne / pine-log

Simple yet powerful logger for Node.JS with contextual logging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌲🪵 pine-log

NPM

Simple yet powerful logger based on pino with contextual logging support.

Example

npm i pino@8 pine-log

Features

  • Contextual Logging: powered by Async Local Storage introduced in Node v14.
  • Automatic: Automatically finds a tag by parsing the caller class/function
  • Performance: It's basically an add-on of pino, which has very low overhead
  • Convenience: Production-Ready Default Configuration
Prerequisites
  • Node.JS v14 or newer (Recommend: v16.4.0 or newer)

LICENSE: MIT

About

Simple yet powerful logger for Node.JS with contextual logging


Languages

Language:TypeScript 75.9%Language:JavaScript 24.1%