Improve logging in application monitor

(1) Now it provides a more loggable format if the value is null or ""
(2) The application report details can change over time. Instead of
    logging them once at the beginning, we log them every time the
    application state changes.