Write candidate functions to a log file