-
-
Notifications
You must be signed in to change notification settings - Fork 70
feat: verbose logging in console #912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Deployed to https://msg-adamant-pr-912.surge.sh 🚀 |
| import type { ActionTree, GetterTree, MutationTree } from 'vuex' | ||
|
|
||
| import { RootState } from '@/store/types' | ||
|
|
||
| interface VerbosityState { | ||
| levelAll: level[] | ||
| levelCurrent: level | ||
| } | ||
|
|
||
| const actions: ActionTree<VerbosityState, RootState> = { | ||
| setLevel({ commit }, value) { | ||
| commit('setLevel', value) | ||
| } | ||
| } | ||
| const getters: GetterTree<VerbosityState, RootState> = { | ||
| levelAll: (state) => state.levelAll, | ||
| levelCurrent: (state) => state.levelCurrent | ||
| } | ||
| const mutations: MutationTree<VerbosityState> = { | ||
| setLevel(state, value) { | ||
| state.levelCurrent = value | ||
| } | ||
| } | ||
| const state = (): VerbosityState => ({ | ||
| levelAll: ['Debug', 'Info', 'Public', 'Warn'], | ||
| levelCurrent: 'Public' | ||
| }) | ||
|
|
||
| export type level = 'Debug' | 'Info' | 'Public' | 'Warn' | ||
|
|
||
| export default { | ||
| actions, | ||
| getters, | ||
| mutations, | ||
| namespaced: true, | ||
| state | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's pinia store
|
can you explain how it works? You just added new setting for dev screen. But you don't use this setting for logging. I don't understand this PR |

Description
Add "Verbose logging in Console" dropdown — to show additional logs only when this is enabled
Related issue
Closes #867
External links (optional)
N/A
Screenshots or videos (optional)
N/A
Breaking changes
None
How to test
/options/dev-screens.Notes for reviewers
None
Checklist