register and log messages from the app