instance method <<

Ruby on Rails edge

Since edge

Signature

<<(msg)

Forward the given msg to the underlying logger with no formatting returns the number of characters written, or nil if the underlying logger is nil:

logger = ProxyLogger.new(Logger.new($stderr))
logger << 'My message.' # => 10

Output:

My message.

Parameters

msg req
Source
# File activesupport/lib/active_support/proxy_logger.rb, line 180
    def <<(msg)
      if @logger
        @logger << msg
      end
    end

Defined in activesupport/lib/active_support/proxy_logger.rb line 180 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::ProxyLogger

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close