Fix to select log format