><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">somethingHappened</span>(<span class="hljs-params">param</span>) </span>{ 
  <span class="hljs-comment">// get logger component</span>
  <span class="hljs-keyword">let</span> logger = <span class="hljs-keyword">this</span>.require(<span class="hljs-string">'logger'</span>);

  logger.info(<span class="hljs-string">'the message "'</span> + param + <span class="hljs-string">'" has been send.'</span>);
}
</code></p