Logging the amount of bytes written