Prado\PradoBase::trace PHP Метод

trace() публичный статический Метод

This method wraps {@link log()} by checking the application mode. When the application is in Debug mode, debug backtrace information is appended to the message and the message is logged at DEBUG level. When the application is in Performance mode, this method does nothing. Otherwise, the message is logged at INFO level.
public static trace ( $msg, $category = 'Uncategorized', $ctl = null )
    public static function trace($msg, $category = 'Uncategorized', $ctl = null)
    {
        if (self::$_application && self::$_application->getMode() === TApplicationMode::Performance) {
            return;
        }
        if (!self::$_application || self::$_application->getMode() === TApplicationMode::Debug) {
            $trace = debug_backtrace();
            if (isset($trace[0]['file']) && isset($trace[0]['line'])) {
                $msg .= " (line {$trace[0]['line']}, {$trace[0]['file']})";
            }
            $level = TLogger::DEBUG;
        } else {
            $level = TLogger::INFO;
        }
        self::log($msg, $level, $category, $ctl);
    }