An open API service indexing awesome lists of open source software.

https://github.com/ljlm0402/pinia-plugin-logger

🍍 Logger Plugin for Pinia
https://github.com/ljlm0402/pinia-plugin-logger

logger pinia pinia-plugin vuejs

Last synced: 7 months ago
JSON representation

🍍 Logger Plugin for Pinia

Awesome Lists containing this project

README

          

🍍 Logger Plugin for [Pinia](https://pinia.vuejs.org/)



npm Version


npm Package License


npm Release Version


npm Downloads


## πŸ•ΉGuide

### Install

```js
$ npm install --save pinia-plugin-logger
```

### Usage

```js
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](LICENSE)