End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Logger#reopen
Logger#reopen
Logger#reopen(logdev)
lib/logger.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/logger.rb, line 413
def reopen(logdev = nil)
@logdev&.reopen(logdev)
self
end
Args
logdev-
The log device. This is a filename (
String) orIOobject (typicallySTDOUT,STDERR, or an open file). reopen the same filename if it isnil, do nothing forIO. Default isnil.
Description
Reopen a log device.