Extracting the method to implement logging so that one can override it
and place it in an MDC, for example.