Given
\begin{align*} dX_{t} &= \mu dt + \sigma X_{t}dB_{t}\\ \log(X_{t}) &={-\frac{1}{2}\int_{0}^{t} \sigma^{2}ds}+{\int_{0}^{t} \sigma dB_{s}} \end{align*}
I am trying to set $\log(Y_{t}) := \frac{1}{2}\sigma^{2}t - \sigma B_{t}$ and show that
if $Z_{t} = X_{t}Y_{t}$, then $dZ_{t} = \mu Y_{t} dt$.
However, I am not very confident in how to calculate $dY_{t}$.
I defined $f(x,y) = xy$ and wrote
$$df = \frac{\partial f}{\partial y}dy + \frac{\partial f}{\partial x}dx + \frac{\partial f}{\partial x}\frac{\partial f}{\partial y}dxdy = xdy + ydx + dxdy$$
so that under Ito,
$$dZ_{t} = X_{t}dY_{t} + Y_{t}dX_{t} + d{X_{t}}d{Y_{t}}.$$
The term $Y_{t}dX_{t}$ is straightforward:
$$Y_{t}dX_{t} = \mu Y_{t}dt + \sigma X_{t}Y_{t}dB_{t} = \mu Y_{t}dt + \sigma dB_{t}.$$
However, I have no idea how to approach computing $dY_{t}$. I have tried to write the following which I do not think is correct:
$$d\log(Y_{t}) = \frac{dY_{t}}{Y_{t}} = \frac{1}{2}\sigma^{2}dt -\sigma dB_{t}$$
so that
$$dY_{t} = \frac{1}{2}\sigma^{2}Y_{t}dt - \sigma Y_{t}dB_{t}.$$
Then substituting this all in:
$$X_{t}dY_{t} = \frac{\sigma^{2}}{2}X_{t}Y_{t}dt - \sigma X_{t}Y_{T}dB_{t} = \frac{\sigma^{2}}{2}dt - \sigma dB_{t}$$
and finally
$$dX_{t}dY_{t} = \left(\mu dt + \sigma X_{t}dB_{t}\right) \left(\frac{1}{2}\sigma^{2}Y_{t}dt - \sigma Y_{t}dB_{t}\right) = -\sigma^{2}X_{t}Y_{T}\langle B_{t},B_{t}\rangle = -\sigma^{2}dt$$
which gives
$$dZ_{t} = \frac{\sigma^{2}}{2}dt - \sigma dB_{t} + \mu Y_{t}dt + \sigma dB_{t} -\sigma^{2}dt = -\frac{\sigma^{2}}{2} + \mu Y_{t}dt.$$
So I am probably off by a factor of $2$ somewhere and I suspect it is in the computation of $dY_{t}$, but I am not sure. What am I doing wrong?