title: Get name of current function in Kotlin
body: <p><strong>Update</strong></p>
  
  <p>How can I get function name which is currently being execute using <code>Kotlin</code>?</p>
  
  <p>I'm trying to get the function name of the function which is currently being execute  as below but it's always coming as null</p>
  
  <pre><code>val funName = Object().`class`.enclosingMethod?.name;
  </code></pre>