log: support log files.