Sorry -- I mistakenly took
script -f filename.log to mean script was some script of your own, not the script command.
The question has been asked several times before (
this search has some but it's not easy to search for) without getting any complete solution but filtering the log with
col -b is reportedly a good start.