title: How can I export console log win Elm?
body: <p>It is difficult to export console.log with Elm.</p>
  <p>I want to output the console log by pushing button like below and with console log in function. How shold I do?</p>
  <pre><code>sampleView : Html Message
  sampleView =
      Html.div (class &quot;sample-card&quot; :: Styles.sampleCard)
          [ Html.div
              (class &quot;sample-card-list&quot; :: Styles.sampleCardList)
              [
                  Html.button
                      (class &quot;sample-card-button&quot; :: Styles.sampleCardListButton)
                      [
                          Html.text &quot;サンプルボタン&quot;
                      ]
              ]
          ]
  </code></pre>
  <p>If I use Javascript, I want to do like below.</p>
  <pre><code>&lt;button class=&quot;sample-card-button&quot; onclick=&quot;btnClick();&quot;&gt;サンプルボタン&lt;/button&gt;
  
  /* JavaScript 側 */
  function btnClick() {
    console.log(&quot;クリックされました&quot;);
  });
  </code></pre>