bench icon indicating copy to clipboard operation
bench copied to clipboard

Introduce `bench log` to deal with all-things-log

Open surajshetty3416 opened this issue 2 years ago • 0 comments

We should have bench log commands to pull and display logs available in bench.

  • It should show last n line of specific type of commands
bench log --source worker -n 100
bench log --source scheduler -n 100
bench log --source web.error -n 100
  • It should also show logs related to specific sites
bench --site sitename log --source web -n 100
  • It should have the ability to stream (or tail) log files
bench --site sitename log --source web -n 100 --stream
  • It can have filters (grep, from, to, etc.)
bench --site sitename log --source web.error -n 100 --stream --find "ValidationError:"
bench --site sitename log --source web --from "2022-02-02" --to "2022-05-02"

surajshetty3416 avatar Jul 28 '22 05:07 surajshetty3416