我是 Rails 的新手,我的 Rails 项目有问题。我使用 Log4r 作为我的记录器。我还在如何使用 Rails 3.0.x 配置 Log4r 中使用了 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 来同步输出?或者我该如何解决我的问题?