Defining custom loglevels
// main.ts
import { Aurelia } from 'aurelia-framework';
import { initialState } from './state';
export function configure(aurelia: Aurelia) {
aurelia.use.standardConfiguration().feature('resources');
aurelia.use.plugin('aurelia-store', {
initialState,
logDispatchedActions: true, // Enable logging of dispatched actions
logDefinitions: {
dispatchedActions: 'debug', // Log dispatched actions with 'debug' level
performanceLog: 'info', // Log performance info with 'info' level
devToolsStatus: 'warn', // Log DevTools status with 'warn' level
},
});
aurelia.start().then(() => aurelia.setRoot());
}Last updated
Was this helpful?