How to log a message from a string variable?

It does not compile