Migrate diagnositc messages to logger_t