Skip to content

remindgmbh/nuxt-logger

Repository files navigation

Nuxt Logger

Installation

  1. install using npm install @remindgmbh/nuxt-logger or yarn add @remindgmbh/nuxt-logger

  2. add module in nuxt.config.js

    export default defineNuxtConfig({
        ...
        modules: [
            ...
            '@remindgmbh/nuxt-logger',
            ...
        ]
        ...
    })

Configuration

Set log level in module options:

export default defineNuxtConfig({
    ...
    logger: {
        level: 2,
    },
    ...
})

See available log levels here.

Usage

Call the auto imported composable useLogger to start using the logger.

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published