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

Fix some bloc logs #247

Closed Mooyeee closed 1 month ago

Mooyeee commented 1 month ago

Hi, thanks a lot for this logger, really cool. However, I noticed that with some bloc events are logged in the console with the date not formatted; it instead prints:

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Closure: ({TimeFormat timeFormat}) => String from: opts => {
│       let timeFormat = opts && 'timeFormat' in opts ? opts.timeFormat : C[23] || CT.C23;
│       return talker_data['FieldsToDisplay|displayTitleWithTime']($this, {timeFormat: timeFormat});
│     }
│ LoginBloc created
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────

With my fix the logs are printed correctly, outputing

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [bloc-create] | 12:41:39 387ms |
│ LoginBloc created
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
Frezyx commented 1 month ago

Hello @Mooyeee ! Thank you for this fix ❤️

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (32fe34e) to head (ff64aef).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #247 +/- ## =========================================== + Coverage 98.80% 100.00% +1.19% =========================================== Files 28 3 -25 Lines 584 98 -486 =========================================== - Hits 577 98 -479 + Misses 7 0 -7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.