1.0.0 β’ Published 10 months ago
pinia-plugin-logger v1.0.0
π Logger Plugin for Pinia
πΉGuide
Install
$ npm install --save pinia-plugin-loggerUsage
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 Feature | β¨ Add Feature |
| Fix Bug | π Fix Bug |
| Refactoring Code | π Refactoring Code |
| Install Package | π¦ Install Package |
| Fix Readme | π Fix Readme |
| Update Version | πΌ Update Version |