Gpf_Log_Logger::findLogFile PHP Method

findLogFile() private method

private findLogFile ( )
        private function findLogFile()
        {
            $calls = debug_backtrace();
            $foundObject = null;
            // special handling for sql benchmarks
            if ($this->sqlBenchmarkFound($calls)) {
                $foundObject = $this->findFileBySqlBenchmark();
            }
            if ($foundObject == null) {
                $foundObject = $this->findFileByCallingMethod($calls);
            }
            if ($foundObject == null) {
                $foundObject = $this->findLatestObjectBeforeString("Logger.class.php");
            }
            if ($foundObject == null) {
                $last = count($calls);
                $last -= 1;
                if ($last < 0) {
                    $last = 0;
                }
                $foundObject = $calls[$last];
            }
            return $foundObject;
        }