public function log($msg)
    {
        $backtrace = debug_backtrace();
        if (!isset($backtrace[1]['function'])) {
            return;
        }

        $i = 1;
        $stackSize = count($backtrace);
        do {
            $callingMethod = $backtrace[$i]['function'];
            $i++;
        } while ($callingMethod == "log" && $i < $stackSize);

        if (!$msg || !$this->isLogEnabledForMethod($callingMethod)) {
            return;
        }

        $this->getLogger()->info($msg);
    }
public function log($msg)
    {
        $backtrace = debug_backtrace();
        if (!isset($backtrace[1]['function'])) {
            return;
        }

        $i = 1;
        $stackSize = count($backtrace);
        do {
            $callingMethod = $backtrace[$i]['function'];
            $i++;
        } while ($callingMethod == "log" && $i < $stackSize);

        if (!$msg || !$this->isLogEnabledForMethod($callingMethod)) {
            return;
        }

        $this->getLogger()->info($msg);
    }
public function log ( $ msg ) { $ backtrace = debug_backtrace ( ) ; if ( ! isset ( $ backtrace [ 1 ] [ 'function' ] ) ) { return ; } $ i = 1 ; $ stackSize = count ( $ backtrace ) ; do { $ callingMethod = $ backtrace [ $ i ] [ 'function' ] ; $ i ++ ; } while ( $ callingMethod == "log" && $ i < $ stackSize ) ; if ( ! $ msg || ! $ this -> isLogEnabledForMethod ( $ callingMethod ) ) { return ; } $ this -> getLogger ( ) -> info ( $ msg ) ; }
Logs the method call or the executed SQL statement.

@param string $msg Message to log.
Logs the method call or the executed SQL statement .