Write to log in binary mode.