getx
getx copied to clipboard
How to turn off log printing

Hi,I don't want to print these logs in console, is there something that can be done
enableLog to false inside GetmaterialApp
I have enableLog: false
in my GetMaterialApp
declaration and the logs still show. I'm on GetX 4.6.5
.
I have
enableLog: false
in myGetMaterialApp
declaration and the logs still show. I'm on GetX4.6.5
.
Me too.
Just to offer a workaround: Get.isLogEnable = false;
seemed to work for me (not using a GetMaterialApp
though).
is there a specific point where i need to put Get.isLogEnable = false;
? i found it didn't work for me putting before the GetMaterialApp
or putting before i runApp (right before i initialize with Get.put).
@matthewkooshad I had placed it early. The app had a main -> runZonedGuarded -> runApp flow. I did put the Get.isLogEnable = false;
into the runZonedGuarded function, a bit before runApp. So that was after WidgetsFlutterBinding.ensureInitialized()
, initializing Firebase and EasyLocalization and such, but before a first Get.put()
and before runApp
.
But that app did not use GetMaterialApp
, so it is possible it won't work for you. Or that it only worked with some other changes I'm not aware of anymore :/