flush (ActiveSupport::BufferedLogger)

    # File lib/active_support/buffered_logger.rb, line 96
        def flush
          @guard.synchronize do
            unless buffer.empty?
              old_buffer = buffer
              @log.write(old_buffer.join)
            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