在发展中使用"工作"显示在控制台上。在生产中,这没有显示。但我也需要在生产中展示它。
例如:
package(php_ssh2-1.1.2-7.1-ts-vc14-x86.zip)
我也希望在生产日志上显示def create
puts "working on production and development"
end
。我怎么能这样做?
答案 0 :(得分:0)
尝试使用logger.info
。仅在模型等中工作。在控制器中,您必须使用logger.info "This is from info"
。