How can I solve this problem?

I want to receive the message in Output Log , but there are something wrong with my code,how can I solve it?(version:1.10)