In dimension $2$, let $T=\log p(X)$ where $X=(X_1,X_2)$ has density $p$ and define a function $q$ by the implicit identity $\mathrm e^t=p(q(t,s),s)$. Then, for every measurable bounded $u$,
$$
E[u(T)]=\iint u(\log p(x_1,x_2))p(x_1,x_2)\mathrm dx_1\mathrm dx_2.
$$
Consider the change of variable $(t,s)=(\log p(x_1,x_2),x_2)$, then $(x_1,x_2)=(q(t,s),s)$, hence $\mathrm dx_1\mathrm dx_2=\partial_1q(t,s)\mathrm dt\mathrm ds$ and
$$
E[u(T)]=\iint u(t)\mathrm e^t\partial_1q(t,s)\mathrm dt\mathrm ds.
$$
Considering $D=\{\log p(x_1,x_2)\mid (x_1,x_2)\in\mathbb R^2,p(x_1,x_2)\ne0\}$, this implies that the distribution of $T$ has density
$$
f_T(t)=\mathrm e^t\mathbf 1_{t\in D}\int\partial_1q(t,s)\mathrm ds.
$$
Example: If $2\pi p(x_1,x_2)=\mathrm e^{-(x_1^2+x_2^2)/2}$, then $D=(-\infty,-\log(2\pi)]$ and $q(t,s)$ is implicitely defined by $q(t,s)^2+s^2+2t+2\log(2\pi)=0$ hence $\partial_1q(t,s)q(t,s)=-1$ and
$$
f_T(t)=\mathrm e^t\mathbf 1_{t\leqslant-\log(2\pi)}\int\frac{2\mathrm ds}{\sqrt{-2\log(2\pi)-2t-s^2}}=2\pi\mathrm e^t\mathbf 1_{t\leqslant-\log(2\pi)}.
$$
In other words, $T=-\log(2\pi)-U$ where the distribution of $U$ is standard exponential.
Likewise, in dimension $n$, using the shorthands $s=(t_2,\ldots,t_n)$ and $y=(x_2,\ldots,x_n)$, define a function $q$ by the implicit identity $\mathrm e^t=p(q(t,s),s)$.
Then the change of variable $(t,s)=(\log p(x_1,y),y)$ yields $(x_1,y)=(q(t,s),s)$, hence $\mathrm dx_1\mathrm dy=\partial_1q(t,s)\mathrm dt\mathrm ds$ and
$$
E[u(\log p(X))]=\iint u(t)\mathrm e^t\partial_1q(t,s)\mathrm dt\mathrm ds.
$$
Considering $D=\{\log p(x)\mid x\in\mathbb R^n,p(x)\ne0\}$, one sees that the distribution of $T$ has density
$$
f_T(t)=\mathrm e^t\mathbf 1_{t\in D}\iint\partial_1q(t,s_2,\ldots,s_n)\mathrm ds_2\cdots\mathrm ds_n.
$$
Example: If $p$ is the standard normal density on $\mathbb R^n$, then $D=(-\infty,-\frac12n\log(2\pi)]$ and $q(t,s)$ is implicitely defined by $q(t,s)^2+\|s\|^2+2t+n\log(2\pi)=0$ hence $\partial_1q(t,s)q(t,s)=-1$ and
$$
f_T(t)=\mathrm e^t\mathbf 1_{t\leqslant-\frac12n\log(2\pi)}\iint\frac{2\mathrm ds}{\sqrt{-n\log(2\pi)-2t-\|s\|^2}},
$$
that is, introducing $t_n=-\frac12n\log(2\pi)$,
$$
f_T(t)\propto\mathrm e^t(t_n-t)^{(n-2)/2}\mathbf 1_{t\leqslant t_n}.
$$
In other words, $T=t_n-U$ where the distribution of $U$ is gamma $(\frac12n,1)$.