Open kristijorgji opened 3 years ago
same issue. No stack trace printed though passed.
Did anyone find any solution for printing stack traces? I am using the below custom printer but the stack trace is printing null.
@override
List<String> log(LogEvent event) {
final color = PrettyPrinter.levelColors[event.level];
final emoji = PrettyPrinter.levelEmojis[event.level];
final message = event.message;
final stackTrace = event.stackTrace;
return [color!('$emoji $className: $message : $stackTrace')];
}
Output
Version 1.0.0
Usage: In development mode catching all flutter logs and printing them
Problem: It is not printing the stack trace, just the message of error:
Maybe is trimming the rest ??? I see
<…>
in output as text but would be great to have at least x top lines of stack trace.I can modify the call to :
Then I can see the stack trace but seems hacky, why is the library then accepting stack trace as second arg in the array ?