add option to specify a custom log format defined in a file