Skip to content

Commit

Permalink
add error and stack traces to default logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 committed Feb 23, 2016
1 parent b847719 commit 7becde4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/generate/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class BuildOptions {
color = _red;
}
var message = '$color[${record.level}]$_endColor ${record.loggerName}: '
'${record.message}\n';
'${record.message}${record.error != null ? "\n${record.error}" : ""}'
'${record.stackTrace != null ? "\n${record.stackTrace}" : ""}\n';
if (record.level >= Level.SEVERE) {
stderr.write(message);
} else {
Expand Down

0 comments on commit 7becde4

Please sign in to comment.