我正在尝试编写自己的回形针处理器,但我应该如何登录回形针记录器?
我尝试了以下,log 'here is the processor'
没有放出任何东西。我该怎么做?
module Paperclip
class MyProcessor < Processor
include Paperclip::Logger
def initialize(file, options = {}, attachment = nil)
super
@format = options[:format]
@current_format = File.extname(@file.path)
@basename = File.basename(@file.path, @current_format)
end
def make
log 'here is the processor'
end
end
end