Skip to content

Commit 507611b

Browse files
authored
Merge branch 'master' into master
2 parents 0a0f0cf + e721e17 commit 507611b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
![redux-logger](http://i.imgur.com/CgAuHlE.png)
77

8+
Thank you to our sponsor [LogRocket](https://logrocket.com?cid=github_redux)!
9+
10+
[![](https://i.imgur.com/Yp5mUx2.png)](https://logrocket.com?cid=github_redux)
11+
12+
> LogRocket is a production Redux logging tool that lets you replay problems as if they happened in your own browser. Instead of guessing why errors happen, or asking users for screenshots and log dumps, LogRocket lets you replay Redux actions + state, network requests, console logs, and see a video of what the user saw.
13+
814
## Table of contents
915
* [Install](#install)
1016
* [Usage](#usage)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"clean": "rimraf dist",
1717
"uglify": "uglifyjs dist/redux-logger.js -cm -o dist/redux-logger.js",
1818
"build": "rollup -c && npm run uglify",
19-
"precommit": "npm test",
20-
"prepublish": "npm run clean && npm test && npm run build"
19+
"precommit": "npm test && npm run lint",
20+
"prepublish": "npm run clean && npm test && npm run lint && npm run build"
2121
},
2222
"eslintConfig": {
2323
"extends": "airbnb",

src/core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ function printBuffer(buffer, options) {
125125
} else logger[nextStateLevel]('next state', nextState);
126126
}
127127

128+
if (logger.withTrace) {
129+
logger.groupCollapsed('TRACE');
130+
logger.trace();
131+
logger.groupEnd();
132+
}
133+
128134
if (diff) {
129135
diffLogger(prevState, nextState, logger, isCollapsed);
130136
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const store = createStore(
4949
applyMiddleware(logger)
5050
)
5151
// Or you can create your own logger with custom options http://bit.ly/redux-logger-options
52-
import createLogger from 'redux-logger'
52+
import { createLogger } from 'redux-logger'
5353
const logger = createLogger({
5454
// ...options
5555
});

0 commit comments

Comments
 (0)