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

[talker_bloc_logger] Since upgrading to versions 4.x.x, not seeing any logs anymore (Flutter 3.19.3) #200

Closed
WieFel opened this issue Mar 14, 2024 · 11 comments · Fixed by #225
Labels
bug Something isn't working help wanted Extra attention is needed work_in_progress Сurrently under work

Comments

@WieFel
Copy link

WieFel commented Mar 14, 2024

Describe the bug
I just upgraded the talker_bloc_logger package from version 2.4.0 to latest 4.0.3, and noticed that suddenly I don't see any bloc logs anymore. I also recently upgraded to latest Flutter version 3.19.3, so it could be related.

To Reproduce
Steps to reproduce the behavior:

  1. Install Flutter version 3.19.3
  2. Install talker_bloc_logger version 4.0.3
  3. Start the app, and notice that there are no bloc logs

Expected behavior
I would expect the logs to just show normally

Smartphone (please complete the following information):

  • Device: iOS Simulator + Android Emulator
  • OS: iOS/Android
@Frezyx
Copy link
Owner

Frezyx commented Mar 19, 2024

Hello @WieFel !
Can you provide info about your code editor ?

@WieFel
Copy link
Author

WieFel commented Mar 20, 2024

Sure!

Android Studio version info
Android Studio Iguana | 2023.2.1
Build #AI-232.10227.8.2321.11479570, built on February 21, 2024
Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Metal Rendering is ON
Registry:
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true

Non-Bundled Plugins:
    Dart (232.10305)
    com.bloc.intellij_generator_plugin (3.4.0)
    com.github.copilot (1.5.0.5148)
    io.flutter (78.2.2)

Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.3.1 23D60 darwin-arm64, locale en-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.85.1)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

@AngeloAvv
Copy link

AngeloAvv commented Mar 27, 2024

Same behavior with talker_dio_logger. I think it's not related to the Flutter SDK version because I'm having the exact problem with Flutter 3.7.x

@nikshit-chauhan
Copy link

same here, no logs any more I just installed this package with version talker 4.1.0 and I am on flutter 3.19.4, I followed the instructions given in package but not seeing any logs

@Frezyx Frezyx added the bug Something isn't working label Mar 29, 2024
@Frezyx
Copy link
Owner

Frezyx commented Mar 29, 2024

Hello everyone!
I will check this issue in near future

Now it seems that this is related to the output method in talker_logger lib

@Frezyx Frezyx added the work_in_progress Сurrently under work label Mar 29, 2024
@II11II
Copy link

II11II commented Mar 29, 2024

As workaround, you can replace the output callback:
final logger = Talker(logger:TalkerLogger(output: log));

@Frezyx Frezyx pinned this issue Mar 29, 2024
@Frezyx Frezyx added the help wanted Extra attention is needed label Mar 29, 2024
@davidnwaneri
Copy link

This also happens in talker_dio_logger. Having:

 _dio.interceptors.add(
        TalkerDioLogger(
          settings: const TalkerDioLoggerSettings(
            printRequestHeaders: true,
          ),
        ),
      );

@quentin996007
Copy link

any update?

@sfcecy7i
Copy link

still not resolved?

@Frezyx
Copy link
Owner

Frezyx commented Apr 27, 2024

Hello everyone!
To prevent issues with log output, you need to pass talker as a parameter to all third-party libraries in the talker ecosystem.

You can use the following code for the TalkerDioLogger:

final talker = TalkerFlutter.init();
    _dio = Dio();
    _dio.interceptors.add(
      TalkerDioLogger(
        talker: talker,
      ),
    );

Why is this happening?
❗️ Log messages integrity

@Frezyx Frezyx linked a pull request Apr 27, 2024 that will close this issue
@Frezyx
Copy link
Owner

Frezyx commented Apr 27, 2024

And now I move back default Talker output method for mobile platforms.
Please check how TalkerDioLogger works in your applications with version 4.1.4

  talker_flutter: ^4.1.4
  talker_dio_logger: ^4.1.4
  talker_bloc_logger: ^4.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed work_in_progress Сurrently under work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants