Skip to content
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

TalkerScreen does not respect configured LogLevel setting #168

Open
rho-cassiopeiae opened this issue Dec 12, 2023 · 0 comments
Open

TalkerScreen does not respect configured LogLevel setting #168

rho-cassiopeiae opened this issue Dec 12, 2023 · 0 comments

Comments

@rho-cassiopeiae
Copy link

Describe the bug
TalkerScreen does not respect configured LogLevel while console logs do respect it.

I initialize a global Talker instance like this:

late final Talker logger;

void main() {
  logger = TalkerFlutter.init(
    logger: TalkerLogger(
      settings: TalkerLoggerSettings(level: LogLevel.warning),
    ),
  );

  runApp(const App());
}

And create a TalkerScreen like this:

showDialog(
  context: context,
  builder: (_) => SimpleDialog(
    children: [
      SizedBox(
        width: 1000,
        height: 600,
        child: TalkerScreen(
          appBarTitle: 'Logs',
          talker: logger, // same global instance
        ),
      ),
    ],
  ),
);

When running, I can see that console logs are outputted correctly – only warnings and more severe, but TalkerScreen still shows all logs, even those that should be filtered out.

Expected behavior
Both console and TalkerScreen correctly filter out logs based on configured LogLevel.

Additional context
Flutter Web
talker_flutter: 3.5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant