debug by sending messages to logger