@remindgmbh/nuxt-logger
v1.0.3
Published
## Installation
Downloads
153
Readme
Nuxt Logger
Installation
install using
npm install @remindgmbh/nuxt-logger
oryarn add @remindgmbh/nuxt-logger
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.