[tweak] changes options to allow log-to-file by options for unit testing