My edit of the other answer (which is wrong) was rejected, so I'll copy it with correction and due credit to its original author.
The weak gradient of the characteristic function of a domain $\Omega$ with a smooth boundary is the vector-valued measure $\nu(x)d\sigma(x)$ where $\nu(x)$ is the inward unit normal at $x\in\partial\Omega$ and $d\sigma$ is the surface measure.
Why so? By the divergence theorem. Recall that by definition, the weak gradient satisfies
$$
\int \nabla u\cdot \varphi = -\int u\operatorname{div}\varphi
$$
for every compactly supported smooth vector field $\varphi$. With $u=\chi_\Omega$ and $\nabla u$ as above this is exactly the divergence theorem.
I know that I can bring the derivative inside of the integral if the inside function and its partial derivative are continuous within the limits.
What you're quoting here is Differentiation under the integral sign, formally stated as:
"Let $f(x,t)$ be a function such that both $f(x,t)$ and its partial derivative $f_x(x, t)$ are continuous in $t$ and $x$ in some region of the $xt$-plane, including $a(x)\leq t\leq b(x)$, $x_0\leq x\leq x_1$. Also suppose that the functions $a(x)$ and $b(x)$ are both continuous and both have continuous derivatives for $x_0 \leq x \leq x_1<$. Then, for $x_0\le x\le x_1$
$$\frac{\mathrm{d}}{\mathrm{d}x}\int_{a(x)}^{b(x)}f(x,t)\,\mathrm{d}t = f\big(x,b(x)\big) \frac{\mathrm{d}}{\mathrm{d}x} b(x) - f\big(x,a(x)\big) \frac{\mathrm{d}}{\mathrm{d}x} a(x) + \int_{a(x)}^{b(x)}\frac{\partial}{\partial x} f(x,t) \,\mathrm{d}t \tag{1}"$$
It's overkill to try to apply this to your question since your integrand $\frac{1}{1 + \ln(t)}$ only depends on one variable, but it can still be done. Applied correctly you get
\begin{align}
\frac{\mathrm{d}}{\mathrm{d}x} \left (\int_{1}^{e^{x}}\frac{1}{1 + \ln(t)}\,\mathrm{d}t \right) &= \frac{1}{1 + \ln(e^x)}\frac{\mathrm{d}}{\mathrm{d}x} e^x -\underbrace{ \frac{1}{1 + \ln(1)} \frac{\mathrm{d}}{\mathrm{d}x} (1)}_{0} + \int_{1}^{e^x}\underbrace{\frac{\partial}{\partial x} \frac{1}{1 + \ln(t)}}_{0} \,\mathrm{d}t\\
& = \frac{e^x}{1+x}
\end{align}
What's happening here? In reality, differentiation under the integral sign is a generalization of the fundamental theorem of calculus. To see why, assume that we have $a(x) =a$ where $a$ is some constant and $f(x,t) = f(t)$ as in your question. i.e, that the lower bound is just a number and the integrand only depends on one variable. Plugging these conditions into $(1)$ we get:
\begin{align}
\frac{\mathrm{d}}{\mathrm{d}x} \left (\int_{a}^{b(x)}f(t)\,\mathrm{d}t \right)
&= f\big(b(x)\big) \frac{\mathrm{d}}{\mathrm{d}x} b(x) - \underbrace{f\big(a\big) \frac{\mathrm{d}}{\mathrm{d}x} a }_{0}+ \int_{a}^{b(x)}\underbrace{\frac{\partial}{\partial x} f(t)}_{0} \,\mathrm{d}t\\
& = f\big(b(x)\big) \frac{\mathrm{d}}{\mathrm{d}x} b(x) \tag{2}
\end{align}
because $a$ being a constant implies $\frac{\mathrm{d}}{\mathrm{d}x} a =0$ and since $f$ doesn't depend on $x$ we get $\frac{\partial}{\partial x} f(t)=0$. But recalling the chain rule we notice that the RHS is exactly the derivative of $F(b(x))$ where $F(x)$ is an antiderivative of $f(x)$. But this is just a consequence of the FTC since
\begin{align}
&\frac{\mathrm{d}}{\mathrm{d}x} \underbrace{\int_{a}^{x}f(t)\,\mathrm{d}t}_{F(x)} =F'(x) =f(x) \tag{FTC}\\
\mathbin{\implies}&\frac{\mathrm{d}}{\mathrm{d}x} \underbrace{\int_{a}^{\color{green}{b(x)}}f(t)\,\mathrm{d}t}_{F(\color{green}{b(x)})} =\frac{\mathrm{d}}{\mathrm{d}x} F(b(x)) \overset{\color{blue}{\text{Chain rule}}}{ =}F'(b(x))b'(x) \overset{\color{blue}{(\text{FTC})}}{=} f\big(b(x)\big)\frac{\mathrm{d}}{\mathrm{d}x} b(x)\end{align}
which is exactly the same result we got in $(2)$, but this time we only used the more simple tools of the FTC and the chain rule to get the result.
tl;dr, you were attempting to use differentiation under the integral sign but didn't apply the theorem correctly. This method is overkill because differentiation under the integral sign is a generalization of the FTC for multivariable functions, but since your integral is dependent on only one variable the problem is solvable using only the FTC and the chain rule.
Best Answer
$f(x)$ can be explicitly calculated. $f(x)=m \left([0,b] \cap [x,\infty) \right)=\begin{cases} b & x \le 0 \\ b-x & 0 \le x \le b \\ 0 & x \ge b \end{cases}$
When $b \to \infty$ $f(x) \to \infty $, and it's not differentiable.
For fixed $b$ $f(x)$ is differentiable everywhere except $x=0,b$ and has derivative
$f'(x)= \begin{cases} 0 & x<0 \\ -1 & 0<x<b \\ 0 & x>b \end{cases}$