Converted the logging statements to use the logger's string expansion