$\log_{base} (\frac yb) = \log_{base} (base^{x-a}) = x-a = \log_{base}(y) - \log_{base}(b)$
Here's what that looks like on a mapping diagram:
And here's a mapping diagram showing the difference of the logarithms visualized as well:
Finally here is a dynamic visualization of the proof using mapping diagrams: