instance method
flush
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.2.22.5Signature
flush()
No documentation comment.
Source
# File activesupport/lib/active_support/buffered_logger.rb, line 99
def flush
@guard.synchronize do
buffer.each do |content|
@log.write(content)
end
# Important to do this even if buffer was empty or else @buffer will
# accumulate empty arrays for each request where nothing was logged.
clear_buffer
end
end
Defined in activesupport/lib/active_support/buffered_logger.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::BufferedLogger