title: Get current class and method?
body: <p>I'm creating a log function that will log my errors in a file.</p>
  
  <p>I thought it will contain which class and method the error occurred in.</p>
  
  <p>Is there a way of logging in which class and method the error occurred in so I don't have to type it manually each time?</p>