added --max-log-size as a config option