Skip to content

Commit

Permalink
Moved tag to top on pretty printer
Browse files Browse the repository at this point in the history
  • Loading branch information
pyciko committed Mar 23, 2024
1 parent 8beaf51 commit e804646
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/src/printers/pretty_printer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ class PrettyPrinter extends LogPrinter {
var color = _getLevelColor(level);
if (_includeBox[level]!) buffer.add(color(_topBorder));

if (tag != null) {
buffer.add(color('$verticalLineAtLevel$tag'));
if (_includeBox[level]!) buffer.add(color(_middleBorder));
}

if (error != null) {
for (var line in error.split('\n')) {
buffer.add(color('$verticalLineAtLevel$line'));
Expand All @@ -418,11 +423,6 @@ class PrettyPrinter extends LogPrinter {
if (_includeBox[level]!) buffer.add(color(_middleBorder));
}

if (tag != null) {
buffer.add(color('$verticalLineAtLevel$tag'));
if (_includeBox[level]!) buffer.add(color(_middleBorder));
}

var emoji = _getEmoji(level);
for (var line in message.split('\n')) {
buffer.add(color('$verticalLineAtLevel$emoji$line'));
Expand Down

0 comments on commit e804646

Please sign in to comment.