When you create a new score, the Script Editor window opens. Go into this window and search for
function onIncomingMessage(protocol, host, port, destination, values)
By default, this method will log received events in the console (open “Config” tab from Inspector panel and see “Message log”). You are free to make something else using scripts. You can have a look at this exemple also : Performance – (a-z)²