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

example doesnt do anything on shake #3

Open
logemann opened this issue Oct 21, 2019 · 6 comments
Open

example doesnt do anything on shake #3

logemann opened this issue Oct 21, 2019 · 6 comments

Comments

@logemann
Copy link

on iPhone Simulator the example provided doesnt work. Neither does it work in my very own application. To get it right, on shake i should see the log on the simulator right inside my app right?

@haarts
Copy link

haarts commented Dec 4, 2019

Some one reported something similar on the main package: simc/logger#20. Could you try the suggestion from there?

@NightOwlCoder
Copy link

I'm having the same issue, can you please create a working sample?
Must be some dumb stuff I'm doing...

@awhitford
Copy link

awhitford commented May 19, 2020

I tried adding LogConsoleOnShake (to the body of my home screen) and it does not seem to do anything.

My issue was that I was not running a debug build and there is a default debugOnly = true which basically disables the shake feature for release builds. I had to override that to be false.

(This is just temporary while I investigate a mysterious bug that is tricky to reproduce.)

@g-balas
Copy link

g-balas commented Aug 13, 2020

I had trouble to make it work, and I found that :

  • logs must be called once the LogConsoleOnShake has been put in the widget tree.
  • debugOnly = false does not seems to work. Sending an APK to someone must be built as debug (flutter build apk --debug)
  • dependencies must be the following :

logger: 0.7.0+1
logger_flutter: ^0.7.1

On Android physical device

@tamoyal
Copy link

tamoyal commented Sep 14, 2021

I can't get anything to log on release builds

@tek08
Copy link

tek08 commented Sep 14, 2021

@tamoyal -- though it's not germane to this issue, not seeing log messages on release builds is intentional. Please see filters in the dependency: logger @https://github.com/leisim/logger/tree/master/lib/src/filters. In particular, DevelopmentFilter, which is used by default. If you want to see logging during release builds, use a different filter.

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

7 participants