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

There is no printout on the emulator #224

Open
cai3804007 opened this issue Apr 24, 2024 · 5 comments
Open

There is no printout on the emulator #224

cai3804007 opened this issue Apr 24, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@cai3804007
Copy link

Describe the bug
A clear and concise description of what the bug is.
Flutter 3.19.6 Framework • revision 54e66469a9 (7 days ago)
Tools • Dart 3.3.4 • DevTools 2.31.1
talker_logger 4.1.3

To Reproduce
Steps to reproduce the behavior:
There is no printout on the iOS emulator, there will be a printout on the real device. Is this a bug that is still unresolved, or is some file missing
Emulator version iOS 17.4
Real device iOS 15.4

@Frezyx
Copy link
Owner

Frezyx commented Apr 27, 2024

Hello @cai3804007 ! Please provide info about your code editor

@Frezyx
Copy link
Owner

Frezyx commented Apr 27, 2024

Maybe this issue related to #200

@Frezyx Frezyx added the bug Something isn't working label Apr 27, 2024
@cai3804007
Copy link
Author

cai3804007 commented Apr 29, 2024

你好@cai3804007!请提供有关您的代码编辑器的信息

void main() {
// Create instance
final logger = TalkerLogger();
// Log messages
logger.debug('debug');
logger.info('info');
logger.critical('critical');
logger.error('error');
logger.warning('warning');
logger.verbose('verbose');
logger.log('log with level info', level: LogLevel.info);
logger.log('custom pen log', pen: AnsiPen()..xterm(49));

runApp(const MyApp());
}

The above code has no output in the main function,In the case of an emulator, but the real device has an output。

Android Studio Iguana | 2023.2.1 Patch 1
Build #AI-232.10300.40.2321.11567975, built on March 13, 2024
MacBook Air Apple M1

@davidnwaneri
Copy link

I am also experiencing this issue. I do not think it is related to #200, I experienced that issue which has now been fixed.

I tried this with talker_dio_logger version:

  • 4.2.3
  • 4.1.5
  • 2.4.0

IDE info:

Android Studio Jellyfish | 2023.3.1 Patch 1
Build #AI-233.14808.21.2331.11842104, built on May 15, 2024
Runtime version: 17.0.10+0-17.0.10b1087.21-11572160 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.5

MacBook Pro Apple M1

iOS simulator device: iPhone 15 - I believe it is the same for any iOS simulator.

@fpbouchard
Copy link

fpbouchard commented Jun 4, 2024

I'm using Flutter 3.19.6, and talker 4.2.3. When running the app using flutter run on an iOS emultaor, I get nothing in the terminal. By looking at the source code of talker_flutter, when it detects that it is running on iOS or macOS it is using dart:developer's log function and then returns. However, developer.log() actually emits an event that is then shown in the devtools, but does not output to stdout.

Not sure what the expected behavior is here.

see: https://stackoverflow.com/a/69697012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants