Function spaces for local smoothing