🍍 Logger Plugin for Pinia
$ npm install --save pinia-plugin-logger
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;
When | Commit Message |
---|---|
Add Feature | ✨ Add Feature |
Fix Bug | 🐞 Fix Bug |
Refactoring Code | 🛠 Refactoring Code |
Install Package | 📦 Install Package |
Fix Readme | 📚 Fix Readme |
Update Version | 🌼 Update Version |