Comments (12)
@westito thanks again for looking into this!
And you are right, it appears to be an old, internal Flutter issue flutter/#64491
from talker.
Not necessarily an answer to your issue but under the hood talker uses log
for iOS and mac and debugPrint
for anything other then web, perhaps this is why it is not shown the way you expect in inteliJ.
So maybe pass a custom logger to your init function.
// 🎯 Dart imports:
import 'dart:developer';
// 🐦 Flutter imports:
import 'package:flutter/foundation.dart';
// 📦 Package imports:
import 'package:talker_flutter/talker_flutter.dart';
final talker = TalkerFlutter.init(
logger: TalkerLogger(
output: debugPrint, // or log
settings: TalkerLoggerSettings(),
),
);
from talker.
@XanderD99 thx. But both solution gives the same result, suprisingly.
from talker.
I have same problem. if you find solution please write his.
from talker.
I am having the same problem. Also after initialising using TalkerFlutter.init()
from talker.
same here
from talker.
same here
from talker.
Not necessarily an answer to your issue but under the hood talker uses
log
for iOS and mac anddebugPrint
for anything other then web, perhaps this is why it is not shown the way you expect in inteliJ.So maybe pass a custom logger to your init function.
// 🎯 Dart imports: import 'dart:developer'; // 🐦 Flutter imports: import 'package:flutter/foundation.dart'; // 📦 Package imports: import 'package:talker_flutter/talker_flutter.dart'; final talker = TalkerFlutter.init( logger: TalkerLogger( output: debugPrint, // or log settings: TalkerLoggerSettings(), ), );
It is not helps because TalkerFlutter
overwrites the output
setting.
The solution:
Simply do not use TalkerFlutter
! It doesn't do anything except that pipes output to log()
instead of debugPrint()
that actually causes the problem!
I think it was a solution for a problem in the past, but this factory went obsolete I think.
from talker.
Not necessarily an answer to your issue but under the hood talker uses
log
for iOS and mac anddebugPrint
for anything other then web, perhaps this is why it is not shown the way you expect in inteliJ.
So maybe pass a custom logger to your init function.// 🎯 Dart imports: import 'dart:developer'; // 🐦 Flutter imports: import 'package:flutter/foundation.dart'; // 📦 Package imports: import 'package:talker_flutter/talker_flutter.dart'; final talker = TalkerFlutter.init( logger: TalkerLogger( output: debugPrint, // or log settings: TalkerLoggerSettings(), ), );It is not helps because
TalkerFlutter
overwrites theoutput
setting.The solution: Simply do not use
TalkerFlutter
! It doesn't do anything except that pipes output tolog()
instead ofdebugPrint()
that actually causes the problem! I think it was a solution for a problem in the past, but this factory went obsolete I think.
Unfortunately this doesn't work either
Tested on Android Studio Jellyfish | 2023.3.1 Patch 1
from talker.
Yes, that's I wrote.
Solution is simply omit TalkerFlutter.init()
:
// Default settings:
final talker = Talker();
// OR: add custom settings
final talker = Talker(
logger: TalkerLogger(
settings: TalkerLoggerSettings(),
),
);
Details: #229
from talker.
@westito thanks for the fast response!
The solution you suggest improves the line format a little but still leaves these artifacts \^[[38;5;4m
which I assume are related to console color codes
from talker.
You sure! Sorry, my bad. I tried with macOS only. As you see, on macOS it is working (TalkerFlutter.init()
uses log()
instead of debugPrint()
). But yes, on iOS it is not working.
![Képernyőfotó 2024-05-22 - 14 32 07](https://private-user-images.githubusercontent.com/536799/332796395-186c31a0-782c-49b2-9630-090fdcb471de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5ODQxMTAsIm5iZiI6MTcxOTk4MzgxMCwicGF0aCI6Ii81MzY3OTkvMzMyNzk2Mzk1LTE4NmMzMWEwLTc4MmMtNDliMi05NjMwLTA5MGZkY2I0NzFkZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwM1QwNTE2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYTZkNjk2NDM5NzVmOTc3MmE0NTc2ZjdlOGQwYjVlYTM4MGFmZjZhNzJmYjc5YWU4NTVhMzQ5MzRhOTRkOTI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.12NjNs03t78SKU3Au7C838v5DGk_ghamrC5NQCiRot4)
Also, the log()
call is not visible with run command.
![Képernyőfotó 2024-05-22 - 14 35 54](https://private-user-images.githubusercontent.com/536799/332797591-96ceff7a-a1a0-42f7-9766-8ca4ee8c4baa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5ODQxMTAsIm5iZiI6MTcxOTk4MzgxMCwicGF0aCI6Ii81MzY3OTkvMzMyNzk3NTkxLTk2Y2VmZjdhLWExYTAtNDJmNy05NzY2LThjYTRlZThjNGJhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwM1QwNTE2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYWI3OTQ3MDY1ZmNmZGY3MmNhNjc5YzU3NzAzYjNjMGI2MmFmZjFmMzAyNTM4MjFmYzRkYzZjOWNlMzJkNjcxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.z6tt6lMIWdB31zaQBZuIC4D9edXpZHG2S_Srn1ZdBOM)
However, on web console the colors are visible (both on iOS and macOS)
![Képernyőfotó 2024-05-22 - 14 37 06](https://private-user-images.githubusercontent.com/536799/332797978-9cb37866-24d0-423e-b4a7-571b3f9d4230.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5ODQxMTAsIm5iZiI6MTcxOTk4MzgxMCwicGF0aCI6Ii81MzY3OTkvMzMyNzk3OTc4LTljYjM3ODY2LTI0ZDAtNDIzZS1iNGE3LTU3MWIzZjlkNDIzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwM1QwNTE2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kYzAyN2ZiZWNiNjEwZjU0ZTRiZDRiNmRlNGQyNzYwMjEwMzRjNzg3YjU5YzJlMGY4MTU3ODQ0ZmEzNDgxMzkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.CSJaAVfDdQX-7rM6PjnE90H0Op1WC4GVTgfthcGFCpc)
So, right now there is no solution I think. iOS escapes special control characters in log likely because security reasons. The intresting part is that log()
uses Dart VM Service to print logs so I would think it is not go through iOS filters. But it is possible both logging uses stdout. I don't know how it works under the hood. A possible solution can be completely skip stdout and use Dart VM Service communication channel to send logs.
from talker.
Related Issues (20)
- Support share_plus ^8.0.0 HOT 2
- Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found when using talker_flutter 4.1.0 HOT 3
- Log inside of a isolate/background and show on app HOT 2
- talker_flutter: TalkerScreen doesn't display stack traces HOT 1
- How can we use the Talker with release mode? HOT 1
- Not printing header/data HOT 2
- Serializable Talker data HOT 1
- Error "object is unsendable" when using TalkDioLogger inside isolate
- Логи в talker.history.text при генерации в файл не очень читабельны. Можете ли вы сделать так, чтобы при генерации в файл логи выглядели так же, как в терминале?
- itemBuilder не передается в TalkerView, из-за чего нельзя настроить отображение логов
- Can't change colors for talker_flutter HOT 1
- There is no printout on the emulator HOT 5
- Add multiple TalkerObserver in TalkerFlutter.init() HOT 1
- Deprecate TalkerFlutter factory
- Add date to log
- Include provider.name in the output of `TalkerRiverpodObserver` HOT 3
- Problem with share_plus HOT 2
- Support new TimeFormat in ecosystem packages HOT 1
- Riverpod logger is printing the state twice
- Filter stack traces when filtering messages that have stack traces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from talker.