Skip to content

Commit

Permalink
♻️ Added handlers for more decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed May 2, 2024
1 parent d4fd63d commit bc7f6b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ceedling/loginator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def format(string, verbosity, label, decorate)
prepend = '🪲 '
when LogLabels::EXCEPTION
prepend = '🧨 '
when LogLabels::CONSTRUCT
prepend = '🚧 '
when LogLabels::STOPWATCH
prepend = '⏱️ '
when LogLabels::SEGFAULT
prepend = '☠️ '
when LogLabels::TITLE
Expand All @@ -166,6 +170,7 @@ def format(string, verbosity, label, decorate)
prepend += 'ERROR: '
when LogLabels::EXCEPTION
prepend += 'EXCEPTION: '
# Otherwise no headings for decorator-only messages
end

return prepend + string
Expand Down

0 comments on commit bc7f6b4

Please sign in to comment.