changed log_file to a public member