method
flush
v2.1.0 -
Show latest stable
- Class:
ActiveSupport::BufferedLogger
flush()public
No documentation available.
# File activesupport/lib/active_support/buffered_logger.rb, line 101
def flush
unless buffer.empty?
if @no_block
@log.write_nonblock(buffer.slice!(0..-1).join)
else
@log.write(buffer.slice!(0..-1).join)
end
end
end