nuxt-logs
v0.0.1
Published
Global Logger for Nuxt
Readme
Nuxt Logs
[!CAUTION] Module is in early experimental stage, breaking changes will occur and it is not ready for production.
Progress
- [ ] File path link to log call
- [ ] Display SSR logs in Nuxt DevTools
- [ ] Client-side logger.
- [ ] Fancy Rich JSON rendering in Nuxt DevTools
- [ ] Omitting a list of specified log levels on production build.
[!NOTE] Open for more suggestions on new features and appreciate any help on optimization/better methods of executing a feature
Features
- Using
consolalogger, sends logged messages back to Nuxt DevTools

Quick Setup
- Add
nuxt-logsdependency to your project
# Using pnpm
pnpm add -D nuxt-logs
# Using yarn
yarn add --dev nuxt-logs
# Using npm
npm install --save-dev nuxt-logs- Add
nuxt-logsto themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-logs'
]
})That's it! You can now use My Module in your Nuxt app ✨
Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with playground, with devtools client ui
npm run dev
# Develop with playground, with bundled client ui
npm run play:prod
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release