Add log_message function to magic_unicorn