Datamapper runtime environemnt (Designer or Server)

Hi,

Is there a property or way to get the current runtime mode for the datamapper.
I only want to output log messages when I run it in the designer, but not on productive on the server.

kind regards
Peter

isRuntime()