Hi! I want to use the inbuilt Logger, with runZonedGuarded. When I build the app in debug mode and the error occurs, I can see the line TEST with the TEST tag on my AppSpector control center. However if I build the app in release mode, then I can't see that line, when the same error occurs. Any idea on this one?
runZonedGuarded(() async {
await onInit();
await onInjection();
await onTypeAdapterRegistration();
onAppSpectorInit(
enable: EnvironmentConfiguration.enableAppSpector,
sessionId: EnvironmentConfiguration.getSessionId(),
);
final Widget app = await onCreate();
runApp(app);
}, (error, stack) {
Logger.e('TEST', 'TEST');
print(error);
print(stack);
});