instance method
<<
Ruby on Rails edge
Since edgeSignature
<<(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
-
msgreq
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