Custom Messages/Errormessages To Console

Is there a way to use javascript in the datamapper to get a custom message or custom error message that will show in the Pres Workflow Service Console a log?

Found it, There is a Logger in the workflow under Actions