-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
TalkerFlutter.init() not printing logs onto console with iOS 16 #139
Comments
@Frezyx I was using talker_logger to log Riverpod 2 state changes using the Provider Observer State Logger from official Riverpod 2 docs. Where I realized that iOS builds does not show colors in debug console. So I internally replaced the "print" with "devtools.log". Then It started working. |
@nikhil7299 in Talker_Flutter.init(), the log method for iOS is debug log, as per my inspection of the package. If you could share which file you changed it would help me produce a similar outcome as yours. |
I just replaced print to devtools.log inside logger.dart in talker_logger like this - Previous Code :-
New Code :-
=> Also run in debug mode as devtool log works in debug mode. |
Did you check TalkerFlutter.init(), source code? It is actually similar to this. But when I used that started for a few times it was printing fine but suddenly it stopped printing. |
Hello @arhamsc ! I'm using talker_flutter: 3.2.10 version in my projects and my logs console is colored as it should be |
@Frezyx
I tried doing what @nikhil7299 did, the devtools.log is not working actually, when i reverted it back to 'print' it worked, but with the special characters as mentioned earlier without colors. |
@arhamsc Did you run in debug mode or without debugging? Developer tools .log() works only in debug mode. |
I ran the app in debug mode. And then tried changing back and forth from developer log and print, only with print it worked not with developer logs. EDIT |
Is there any update on this thread? @Frezyx |
Android Studio's console log example, when run on iOS 15/16
|
Hello guys! |
@arhamsc |
@nikhil7299 Yes I used the internal vs code run command. And I have tried the steps you have mentioned. It seems to be the general problem of the apple making internal changes which aren't allowing the logs in general within flutter framework. |
Any updates/workaround? |
It seems to be printing onto IoS console in a neater way now. Device: Iphone 14 Pro Max But there is not color coding and has some weird alignment and symbols. |
Describe the bug
When developing on physical iOS device, TalkerFlutter.init() is not printing logs onto the console.
Smartphone:
Additional context
When i shifted to just Talker(), it worked but prints special characters before and after the message -
<....>
The text was updated successfully, but these errors were encountered: