Support capturing log file.