output log to file