Open vanlooverenkoen opened 6 months ago
Workaround but not a fix
Override the printToZone
meaning we have to runZoned
in order to override the print.
runZoned(() {
final flutterConfig = Config(
imagePath: 'app_icon.png',
android: true,
ios: true,
removeAlphaIOS: true,
);
await createIconsFromConfig(flutterConfig, FLILogger(false), '.');
}, zoneSpecification: ZoneSpecification(print: (Zone self, ZoneDelegate parent, Zone zone, String line) {
// skip the logs or do something custom
}));
:information_source: Info
Version:
0.13.1
:speech_balloon: Description
printStatus
will just print to the console even if another Logger is configured. This makes it hard to disable logs. For a dart script where we want to have control over the output. So we can show data to the user that is usefull.This is the output I see:
with this code:
Expected behaviour:
printStatus
should use the FLILogger instead of usingprint
.It would also be nice to have the option to set a NoopLogger. (which I created myself to disable all logs)
:scroll: Pubspec.yaml
No dependencies.