logger optional argument in message handler, for easier testing/focus