instance method
auto_flushing=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v3.2.22.5Signature
auto_flushing=(period)
Set the auto-flush period. Set to true to flush after every log message, to an integer to flush every N messages, or to false, nil, or zero to never auto-flush. If you turn auto-flushing off, be sure to regularly flush the log yourself – it will eat up memory until you do.
Parameters
-
periodreq
Source
# File activesupport/lib/active_support/buffered_logger.rb, line 83
def auto_flushing=(period)
@auto_flushing =
case period
when true; 1
when false, nil, 0; MAX_BUFFER_SIZE
when Integer; period
else raise ArgumentError, "Unrecognized auto_flushing period: #{period.inspect}"
end
end
Defined in activesupport/lib/active_support/buffered_logger.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::BufferedLogger