HI, I have a method in a class that calls Logger::info() The issue is the file:line column in the html appender will always report my helper method and not the calling file:line. Using php's debug_backtrace I can get the calling file:line but can't see how I can dynamically change the column. Is this possible, or is there a Logger::method() that I need to overwrite?
My helper method currently is: public function log( $msg, $level='info' ){ //trace $bt = debug_backtrace(); $caller = array_shift($bt); $trace = $caller['file'] . ":" . $caller['line']; $this->log_api->trace($trace); //log $this->log_api->$level( $msg ); } } And my xml config is: <appender name="myHTMLFileAppender" class="LoggerAppenderFile"> <layout class="LoggerLayoutHtml"> <param name="locationInfo" value="true" /> </layout> <param name="file" value="/path/to/logfile/log.html" /> <param name="append" value="false" /> </appender> regards, Daithi -- "Any society that would give up a little liberty to gain a little security, will deserve neither and lose both." *- Benjamin Franklin*