get current class and method?
<p>im 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 occured in.</p>

<p>is there a way of logging in which class and method the error occured in so i dont have to type it manually each time?</p>
