Logging for write API