End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Logger#<<
<<(msg)
lib/logger.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/logger.rb, line 682
def <<(msg)
@logdev&.write(msg)
end
Writes the given msg to the log with no formatting; returns the number of characters written, or nil if no log device exists:
Example
logger = Logger.new($stdout) logger << 'My message.' # => 10
Output:
My message.