跳到內容 跳到搜尋

僅顯示訊息的簡單格式化器。

方法
C

執行個體公開方法

call(severity, timestamp, progname, msg)

當記錄事件發生時,會呼叫此方法

# File activesupport/lib/active_support/logger.rb, line 37
def call(severity, timestamp, progname, msg)
  "#{String === msg ? msg : msg.inspect}\n"
end