It is well-known that the Hilbert transform $H(f)$ of a bounded, compactly supported function $f:\mathbb{R}\rightarrow\mathbb{C}$ belongs to $L^{1}(\mathbb{R})$ precisely when $\int f=0$. One can relax the boundedness assumption to $f\in L^{p}$, for $p>1$, or even $L\log L$. More generally, we only have a hope that the Hilbert transform $H(f)$ of an integrable function $f$, not necessarily compactly supported, is itself integrable if $\int f=0$.
Problem. I am quite confident that it is true that we have the proper containment
$$H^{1}(\mathbb{R}):=\left\{f\in L^{1}(\mathbb{R}) : H(f)\in L^{1}(\mathbb{R})\right\}\subsetneq\left\{f\in L^{1}(\mathbb{R}) : \int_{\mathbb{R}}f=0\right\}$$
however, I am struggling to produce an example proving the properness of the containment. Can someone help me with such an example?
My motivation for this question is understanding how close the real Hardy space $\mathbb{R}^{n}$ is to integrable functions which have good cancellation (see also this question). In one dimension, an equivalent characterization of the Hardy space $H^{1}(\mathbb{R})$ is $L^{1}$ functions with $L^{1}$ bounded Hilbert transforms and in fact, $\left\|f\right\|_{L^{1}}+\left\|Hf\right\|_{L^{1}}$ defines an equivalent norm. In higher dimensions, the analogue of this equivalence is $L^{1}$ boundedness of the Riesz transforms.
This is actually much easier than I thought. In particular, the following example is compactly supported.
First, I claim that the Hilbert transform of the function $$f:x\mapsto\dfrac{1}{x(\log|x|)^{2}}\chi_{(0,1/2)}(x)$$ is not locally integrable. Indeed, for $x<0$, \begin{align*} \left|\int_{0}^{1/2}\dfrac{1}{y(\log|y|)^{2}}\dfrac{1}{x-y}dy\right|&\geq\int_{x}^{1/2}\dfrac{1}{y(\log|y|)^{2}}\dfrac{1}{y-x}dy\\ &\geq\int_{0}^{x}\dfrac{1}{y(\log|y|)^{2}}\dfrac{1}{y+|x|}dy\\ &\geq\dfrac{1}{2|x|}\int_{0}^{x}\dfrac{1}{y(\log|y|)^{2}}dy\\ &=\dfrac{1}{2|x|\log|x|}, \end{align*} Hence, the $H(f)$ is not integrable on the interval $(-1/4,1/4)$.
If $\varphi\in C_{c}^{\infty}(\mathbb{R})$, then it's not hard to show that $H(\varphi)$ is bounded and in particular, locally integrable. Take $\varphi$ to be supported in $(0,1/2)$ and satisfy $\int\varphi=1$. Note that $\int f=(\log 2)^{-1}$ and obtain a mean zero, compactly supported, integrable function $g:=f-(\log 2)^{-1}\varphi$. So by linearity, $$\left|\int_{-1/4}^{0}H(g)(x)dx\right|\geq\left|\int_{-1/4}^{0}H(f)(x)dx\right|-(\log 2)^{-1}\|H(\varphi)\|_{L^{\infty}}=\infty$$