Skip to content

Commit

Permalink
add deprecation warning for createLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 4, 2016
1 parent c5f1c06 commit 9a9d3da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,15 @@ function install (_Vue) {
override(Vue)
}

function createLogger () {
console.warn(
'[vuex] Vuex.createLogger has been deprecated.' +
'Use `import createLogger from \'vuex/logger\' instead.'
)
}

export default {
Store,
install
install,
createLogger
}

0 comments on commit 9a9d3da

Please sign in to comment.