add log to file and with log config supported