ActiveSupport::Logger::SimpleFormatter

class ActiveSupport::Logger::SimpleFormatter

Parent:
Logger::Formatter

Simple formatter which only displays the message.

Public Instance Methods

call(severity, timestamp, progname, msg) Show source

This method is invoked when a log event occurs

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

© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部