Adds an entry of the type "Diagnostic" to the log. The log is shown in the menu item "Application error and log".