Frezyx / talker

☎️ Advanced error handler and logger for dart and flutter apps
https://pub.dev/packages/talker
MIT License
478 stars 57 forks source link

How can we use the Talker with release mode? #216

Closed cogivn closed 5 months ago

cogivn commented 5 months ago

Is your feature request related to a problem? Please describe. When sign the application with release mode. I don't want to print sensitive data in console but want to keep send logs to Firebase Crashlytics via Talker. Now on Talker library has enable property to control it but when we disable then all talker features will be disabled.

Describe the solution you'd like Do we have any ways to keep the Talker process still running when enable=fasle but do not print logs in console for release mode or keep the TalkerObserver still running even the talker settings is disabled?

Frezyx commented 5 months ago

Hello @cogivn ! You can set useConsoleLogs field for these purposes https://github.com/Frezyx/talker/tree/master/packages/talker#%EF%B8%8F-customization

final talker = TalkerFlutter.init(
  settings: TalkerSettings(
    enabled: true,
    useConsoleLogs: kDebugMode,
  ),
  observer: FirebaseTalkerObserver(),
);