Logger updated to support watchdog in a better way. Message and message variables are divided. This makes it more easy to implement different types of logging and adjust the message.