SourceHorizon / logger

Small, easy to use and extensible logger which prints beautiful logs.
https://pub.dev/packages/logger
MIT License
197 stars 33 forks source link

`addLogListener` should be instance method #83

Open haashem opened 4 weeks ago

haashem commented 4 weeks ago

Hi,

static method addLogListener is shared between multiple instance of Logger in different packages, which causes the caught exception in main package still being reported because the other package is logging the exception as error.

as you see in my main app I have caught the exception, but the SpotifySDK (third party package) reporting the exception as error and collides with my logger extension! and cause unwanted logging errors!

Is it possible to make it instance method?

Screenshot 2024-08-21 at 20 25 26

Screenshot 2024-08-21 at 20 25 49

Screenshot 2024-08-21 at 20 27 21