简体   繁体   中英

How can I improve the rails log?

At even moderate a request volume, the rails log in 3.2.x writes to the log blindly and ends up with multiple requests overlapping each other making it very difficult to parse and analyze.

What techniques exist for fixing this? My goal is to analyze for basic performance and exceptions and other debugging.

Thanks.

see: http://railscasts.com/episodes/318-upgrading-to-rails-3-2

config.log_tags = [:uuid, :remote_ip]

will give each request a unique id that you can parse and group on

but really if you want performance and exception notification

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM