copyToWithLogging
fun InputStream.copyToWithLogging(destination: File): Long
Copy streams and close at the end