Skip to content

[QUESTION] No Logger output when the app is built in release mode #55

@adamszalma

Description

@adamszalma

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);
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions