I am struggling with the following exercise:
Prove that on Black-Scholes market, with some parameters $r, \mu, \sigma >0$, a payoff $$X=\int_{0}^{T}\ln \frac{S_t}{S_0}\mathrm{d}t+\frac{1}{\sigma}\Big(\ln^2\frac{S_T}{S_0} + (\sigma^2-2\mu)T\ln\frac{S_T}{S_0}\Big),$$
is replicable. Find the appropriate strategy.
I know that if $ \ \mathbb{E}_{Q}X^2<\infty, \ $ then $X$ is replicable. I guess that this can be easily checked here. But I do not know how to look for replication strategy. This $X$ is not in the form of $X=f(S_T)$, which I have seen in some materials. I will be grateful for any help.