/nuxt3-pino

Pino Logger Nuxt3 module

Primary LanguageTypeScript

Nuxt3 Pino

npm version npm downloads License Nuxt

Easily add pino logger to your Nuxt3 app.

Features

  • Single logging API for client/server
  • Logging Levels info|debug|error|warning
  • HTTP Logging

Quick Setup

  1. Add nuxt3-pino dependency to your project
# Using pnpm
pnpm add -D nuxt3-pino

# Using yarn
yarn add --dev nuxt3-pino

# Using npm
npm install --save-dev nuxt3-pino
  1. Add nuxt3-pino to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt3-pino'
  ]
})

That's it! You can now use Nuxt3 Pino in your Nuxt app ✨

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release