【发布时间】:2013-06-13 08:17:26
【问题描述】:
我是 Rails 的新手,我的 Rails 项目有问题。我使用 Log4r 作为我的记录器。我还在 How to configure Log4r with Rails 3.0.x? 使用了 Log4r 的配置。但是当我同时发送一些请求时,Log4r 的输出有错误。它是无序的。 :(
错误输出日志文件示例:
Started GET "/task_results.json" for 172.29.73.182 at 2013-06-17 17:36:38 +0700
Processing by TaskResultsController#index as JSON
Started GET "/favicon.ico" for 172.29.73.182 at 2013-06-17 17:36:38 +0700
Processing by ApplicationController#missing_page as
Parameters: {"path"=>"favicon"}
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m [36m (994.0ms) [0m [1mSELECT task_result_id,task_id,worker_id,product_id,passed,date_time,details FROM task_results ORDER BY task_result_id DESC; [0m
Completed 200 OK in 8656ms (Views: 0.2ms | ActiveRecord: 994.0ms)
我想问我如何配置 Log4r 来同步输出?或者我该如何解决我的问题?
【问题讨论】:
标签: ruby-on-rails logging config output log4r