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

v2 log signature changed #39

Closed hampsterx closed 1 year ago

hampsterx commented 1 year ago

note for those about to get hit by this, esp if your CI server makes test fails not obvious the actual error, doh

I was/am using like so

 log.w(err, "some msg");

You have just published new version, I need to upgrade I guess...

And for now I pin to v1 doh

  # log signature changed in 2.x
  logger: ^1.4.0

Would recommend update readme to show usage of additional args tho

Documentation Log level You can log with different levels:

logger.t("Trace log");

logger.d("Debug log");

logger.i("Info log");

logger.w("Warning log");

logger.e("Error log");

logger.f("What a fatal log");


right, named args ok..

d(dynamic message, {DateTime? time, Object? error, StackTrace? stackTrace}) → void
Log a message at level Level.debug.
Bungeefan commented 1 year ago

Hi, yeah, sorry the README slipped my update. Going to update it asap.

Bungeefan commented 1 year ago

9706885