Added --logexpire to remove the log after some hours