update logging messages to use logger and format