pinia-plugin-logger
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Pinia Actions Logger Plugin

npm Version npm Package License npm Release Version npm Downloads


🕹Guide

Install

$ npm install --save pinia-plugin-logger

Usage

import { createPinia } from "pinia";
import piniaPluginLogger from "pinia-plugin-logger";

const pinia = createPinia();
const logger = piniaPluginLogger({
  activate: true, // Activate the logger
  expanded: true, // Expand the console group
  store: true, // Show the store name in the console
  timestamp: true, // Show the time of the action in the console
  errors: true, // Show error the console
  include: [], // If defined, only the actions in this list will be logged
  exclude: [], // If defined, the work of this list is excluded
});

pinia.use(logger);

export default pinia;

📬 Recommended Commit Message

When Commit Message
Add function feat: ⚡️ Add function
Fix bug fix: 🐞 Fix bug
Refactoring refactor: 🛠 Refactoring
Add package package: 📦 Add package
Fix readme docs: 📚 Fix readme
Improvements style style: 👁 Improvements style

💳 License

MIT

Package Sidebar

Install

npm i pinia-plugin-logger

Weekly Downloads

15

Version

0.0.3

License

MIT

Unpacked Size

139 kB

Total Files

14

Last publish

Collaborators

  • limkyungmin