Today we’re excited to announce official support for Angular and ngrx in LogRocket. Using the new logrocket-ngrx npm package, developers can log actoins/state in production, helping fix bugs and user issues faster.
What is LogRocket?
Why it helps
Vuex logs often hold the key to solving errors and user-reported issues.
The ngrx plugin logs actions/state in your app. Setup requires just a few lines of code:
import createNgrxMiddleware from 'logrocket-ngrx';
const logrocketMiddleware = createNgrxMiddleware(LogRocket, opts);
const productionReducer = compose( stateSetter, logrocketMiddleware, combineReducers) (reducers);
By default, all mutations are logged, but the plugin lets you specify a sanitizer function to prevent certain mutations from being logged, or hide sensitive information from mutation payloads.
ngrx action search
LogRocket has a powerful search interface that lets you search for particular Vuex mutations across sessions. You can combine search filters to find mutations for a given user, or on a certain page in your app.
To get started with LogRocket, create a free account at https://logrocket.com.