writeTo() method for logging information about AMF and JDBC step