|
@ -210,7 +210,7 @@ class BasicFormatter < SemanticLogger::Formatters::Color # rubocop:disable Metri |
|
|
def wrap_message(message) |
|
|
def wrap_message(message) |
|
|
message, space_prefix = split_spaces_in_front(message) |
|
|
message, space_prefix = split_spaces_in_front(message) |
|
|
message = Wrapper.wrap("#{CONTENT_COLOR_MAP[log.level]}#{message}", |
|
|
message = Wrapper.wrap("#{CONTENT_COLOR_MAP[log.level]}#{message}", |
|
|
before_message(wrapped: true) + space_prefix.to_s, |
|
|
|
|
|
|
|
|
before_message(true) + space_prefix.to_s, |
|
|
compute_useful_length - space_prefix.length) |
|
|
compute_useful_length - space_prefix.length) |
|
|
"#{space_prefix}#{message}" |
|
|
"#{space_prefix}#{message}" |
|
|
end |
|
|
end |
|
@ -226,7 +226,7 @@ class BasicFormatter < SemanticLogger::Formatters::Color # rubocop:disable Metri |
|
|
100 # FIXME: CONSTANTIZE, only useful in DEBUGGER, no IO.console detected! |
|
|
100 # FIXME: CONSTANTIZE, only useful in DEBUGGER, no IO.console detected! |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def before_message(wrapped: false) |
|
|
|
|
|
|
|
|
def before_message(wrapped = false) |
|
|
[name, wrapped ? continuation : level, tags, named_tags, duration].compact.join(' ') + CONTENT_PREFIX |
|
|
[name, wrapped ? continuation : level, tags, named_tags, duration].compact.join(' ') + CONTENT_PREFIX |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|