Skip to content

Instantly share code, notes, and snippets.

@ascendbruce
Created November 20, 2013 06:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ascendbruce/7558475 to your computer and use it in GitHub Desktop.
Save ascendbruce/7558475 to your computer and use it in GitHub Desktop.
用 request-log-analyzer 分析 rails 的 log

先安裝 request-log-analyzer gem,建議把 log 檔抓到自己電腦來做分析。

gem i request-log-analyzer

分析某一個 log 檔

request-log-analyzer log/production.log --output HTML --file tmp/log_report.html

指定多個 log 檔

request-log-analyzer log/production.log log/production.log.1 --output HTML --file tmp/log_report.html

或 wildcard

request-log-analyzer log/production.log* --output HTML --file tmp/log_report.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment