logger icon indicating copy to clipboard operation
logger copied to clipboard

angularDart filename

Open kleinpetr opened this issue 3 years ago • 1 comments

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

I've always got this stack trace image

kleinpetr avatar Jun 24 '21 07:06 kleinpetr

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,
  );

kleinpetr avatar Jun 24 '21 08:06 kleinpetr