Skip to content

ljlm0402/pinia-plugin-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Logger Plugin for Pinia

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 Feature โœจ Add Feature
Fix Bug ๐Ÿž Fix Bug
Refactoring Code ๐Ÿ›  Refactoring Code
Install Package ๐Ÿ“ฆ Install Package
Fix Readme ๐Ÿ“š Fix Readme
Update Version ๐ŸŒผ Update Version

๐Ÿ’ณ License

MIT

Releases

No releases published

Packages

No packages published