toFormattedString method
Returns a formatted string representation of this log event. Useful for sending to external logging systems.
Implementation
String toFormattedString() {
var logsStr = title;
if (exception != null) {
logsStr += ' - $exception';
}
if (stackTrace != null) {
logsStr += '\n$stackTrace';
}
return logsStr;
}