app/code/community/Nexcessnet/Turpentine/Helper/Debug.php
public function logBackTrace($backTrace = null) {
        if (is_null($backTrace)) {
            $backTrace = debug_backtrace();
            array_shift($backTrace);
        }
        $btuuid = Mage::helper('turpentine/data')->generateUuid();
        $this->log('TRACEBACK: START ** %s **', $btuuid);
        $this->log('TRACEBACK: URL: %s', $_SERVER['REQUEST_URI']);
        for ($i = 0; $i < count($backTrace); $i++) {
            $line = $backTrace[$i];
            $this->log('TRACEBACK: #%02d: %s:%d',
                $i, $line['file'], $line['line']);
            $this->log('TRACEBACK: ==> %s%s%s(%s)',
                (is_object(@$line['object']) ?
                    get_class($line['object']) : @$line['class']),
                @$line['type'],
                $line['function'],
                $this->_backtrace_formatArgs($line['args']));
        }
        $this->log('TRACEBACK: END ** %s **', $btuuid);
    }
public function logBackTrace($backTrace = null) {
        if (is_null($backTrace)) {
            $backTrace = debug_backtrace();
            array_shift($backTrace);
        }
        $btuuid = Mage::helper('turpentine/data')->generateUuid();
        $this->log('TRACEBACK: START ** %s **', $btuuid);
        $this->log('TRACEBACK: URL: %s', $_SERVER['REQUEST_URI']);
        for ($i = 0; $i < count($backTrace); $i++) {
            $line = $backTrace[$i];
            $this->log('TRACEBACK: #%02d: %s:%d',
                $i, $line['file'], $line['line']);
            $this->log('TRACEBACK: ==> %s%s%s(%s)',
                (is_object(@$line['object']) ?
                    get_class($line['object']) : @$line['class']),
                @$line['type'],
                $line['function'],
                $this->_backtrace_formatArgs($line['args']));
        }
        $this->log('TRACEBACK: END ** %s **', $btuuid);
    }
public function logBackTrace ( $ backTrace = null ) { if ( is_null ( $ backTrace ) ) { $ backTrace = debug_backtrace ( ) ; array_shift ( $ backTrace ) ; } $ btuuid = Mage :: helper ( 'turpentine/data' ) -> generateUuid ( ) ; $ this -> log ( 'TRACEBACK: START ** %s **' , $ btuuid ) ; $ this -> log ( 'TRACEBACK: URL: %s' , $ _SERVER [ 'REQUEST_URI' ] ) ; for ( $ i = 0 ; $ i < count ( $ backTrace ) ; $ i ++ ) { $ line = $ backTrace [ $ i ] ; $ this -> log ( 'TRACEBACK: #%02d: %s:%d' , $ i , $ line [ 'file' ] , $ line [ 'line' ] ) ; $ this -> log ( 'TRACEBACK: ==> %s%s%s(%s)' , ( is_object ( @ $ line [ 'object' ] ) ? get_class ( $ line [ 'object' ] ) : @ $ line [ 'class' ] ) , @ $ line [ 'type' ] , $ line [ 'function' ] , $ this -> _backtrace_formatArgs ( $ line [ 'args' ] ) ) ; } $ this -> log ( 'TRACEBACK: END ** %s **' , $ btuuid ) ; }
Log a backtrace, can pass a already generated backtrace to use

@param  array $backTrace
@return null
Log a backtrace can pass a already generated backtrace to use