The definition of the Lebesgue integral with measure $\mu$ is that
$$\int \chi_I d\mu = \mu(I)$$
Assuming that your measure is just the usual Lebesgue measure on $\mathbb{R}$, and $I$ is an interval, then $\mu(I)$ is its length. If $I$ is a more general set, then its length is defined to be its Lebesgue measure.
The definition of the Lebesgue integral with measure $\mu$ is that
$$\int \chi_I d\mu = \mu(I)$$
Assuming that your measure is just the usual Lebesgue measure on $\mathbb{R}$, and $I$ is an interval, then $\mu(I)$ is its length. If $I$ is a more general set, then its length is defined to be its Lebesgue measure.