simc / logger

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

angularDart filename #99

Open kleinpetr opened 3 years ago

kleinpetr commented 3 years ago

Is it possible to detect filename with JS or add filename to stacktrace manually?

I've always got this stack trace image

kleinpetr commented 3 years ago

So when I use StackTrace.current, I've got better output.

image

Even though that the current filename is on #0 index, I can see it. So can I set this behavior by default for each log?

logger.d(
    'Logger is ready',
    null,
    StackTrace.current,
  );