Set log by config file.