ouput log to file