Converted console message to log message