Log error to log tab

Using textmsg I can only log an info to the log tab.
Is it possible to log an error to the log tab in URScript, so that it is marked as an error?