|
|
@ -30,7 +30,6 @@ class AnsiFormatter < SemanticLogger::Formatters::Color |
|
|
|
end |
|
|
|
|
|
|
|
def call(log, logger) |
|
|
|
# puts caller_locations(1, 15) |
|
|
|
log = alter(log) |
|
|
|
|
|
|
|
self.log = log |
|
|
@ -41,7 +40,9 @@ class AnsiFormatter < SemanticLogger::Formatters::Color |
|
|
|
end |
|
|
|
|
|
|
|
def reject(log) |
|
|
|
true if log.name == 'ActionView::Base' && log.message.starts_with?(' Rendering') |
|
|
|
return true if log.name == 'ActionView::Base' && log.message.starts_with?(' Rendering') |
|
|
|
|
|
|
|
true if log.name == 'Rails' && log.message.starts_with?('Loaded') |
|
|
|
end |
|
|
|
|
|
|
|
private |
|
|
|