Logging ensures that if the caller catches your exception and discards it, traces of this exception can be recovered at a later stage.