Set up log message functionality