bin/log_output: require --max-line argument

remove dead functions