change log_file_sink to use stdio