auto_flushing=(period)
public
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.
Show source
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