https://github.com/eveningkid/rematch-logger
A simple logger for Rematch
https://github.com/eveningkid/rematch-logger
log logger plugin redux rematch
Last synced: 3 months ago
JSON representation
A simple logger for Rematch
- Host: GitHub
- URL: https://github.com/eveningkid/rematch-logger
- Owner: eveningkid
- Created: 2019-04-28T13:40:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T20:35:52.000Z (almost 3 years ago)
- Last Synced: 2025-03-04T06:16:58.178Z (7 months ago)
- Topics: log, logger, plugin, redux, rematch
- Language: JavaScript
- Size: 234 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rematch-logger
A simple logger for Rematch```
21:18:16.265 projects/init
21:18:18.274 projects/_addProject
```## Use
```js
import { init } from '@rematch/core';
import * as models from './models';
import logger from 'rematch-logger';const store = init({
models,
// Options can be overrode by calling logger({ option: value })
plugins: [logger()],
});```
## Options
```
log: console.log, logging function
timestamp: true, show current timestamp when the action is triggered
payload: true, show the action payload (all but .type in action's object)
```## Build
```
npm run build
```## License
MIT