src/Debug/Output/Text.php
public function processLogEntry($method, $args = array(), $meta = array())
    {
        $prefixes = array(
            'error' => '⦻ ',
            'info' => 'ℹ ',
            'log' => '',
            'warn' => '⚠ ',
            'assert' => '≠ ',
            'clear' => '⌦ ',
            'count' => '✚ ',
            'countReset' => '✚ ',
            'time' => '⏱ ',
            'timeLog' => '⏱ ',
            'group' => '▸ ',
            'groupCollapsed' => '▸ ',
        );
        $prefix = isset($prefixes[$method])
            ? $prefixes[$method]
            : '';
        $strIndent = \str_repeat('    ', $this->depth);
        if (\in_array($method, array('assert','clear','error','info','log','warn'))) {
            if (\count($args) > 1 && \is_string($args[0])) {
                $hasSubs = false;
                $args = $this->processSubstitutions($args, $hasSubs);
                if ($hasSubs) {
                    $args = array( \implode('', $args) );
                }
            }
        } elseif ($method == 'alert') {
            $classToPrefix = array(
                'danger' => 'error',
                'info' => 'info',
                'success' => 'info',
                'warning' => 'warn',
            );
            $class = $meta['class'];
            $prefix = $prefixes[$classToPrefix[$class]];
            $prefix = '[Alert '.$prefix.$class.'] ';
            $args = array($args[0]);
        } elseif (\in_array($method, array('profileEnd','table'))) {
            if (\is_array($args[0])) {
                $args = array($this->methodTable($args[0], $meta['columns']));
            }
            if ($meta['caption']) {
                \array_unshift($args, $meta['caption']);
            }
        } elseif ($method == 'trace') {
            \array_unshift($args, 'trace');
        } elseif (\in_array($method, array('group','groupCollapsed'))) {
            $this->depth ++;
        } elseif ($method == 'groupEnd' && $this->depth > 0) {
            $this->depth --;
        }
        $str = $prefix.$this->buildArgString($args);
        $str = \rtrim($str);
        if ($str) {
            $str = $strIndent.\str_replace("\n", "\n".$strIndent, $str);
            return $str."\n";
        }
        return '';
    }
public function processLogEntry($method, $args = array(), $meta = array())
    {
        $prefixes = array(
            'error' => '⦻ ',
            'info' => 'ℹ ',
            'log' => '',
            'warn' => '⚠ ',
            'assert' => '≠ ',
            'clear' => '⌦ ',
            'count' => '✚ ',
            'countReset' => '✚ ',
            'time' => '⏱ ',
            'timeLog' => '⏱ ',
            'group' => '▸ ',
            'groupCollapsed' => '▸ ',
        );
        $prefix = isset($prefixes[$method])
            ? $prefixes[$method]
            : '';
        $strIndent = \str_repeat('    ', $this->depth);
        if (\in_array($method, array('assert','clear','error','info','log','warn'))) {
            if (\count($args) > 1 && \is_string($args[0])) {
                $hasSubs = false;
                $args = $this->processSubstitutions($args, $hasSubs);
                if ($hasSubs) {
                    $args = array( \implode('', $args) );
                }
            }
        } elseif ($method == 'alert') {
            $classToPrefix = array(
                'danger' => 'error',
                'info' => 'info',
                'success' => 'info',
                'warning' => 'warn',
            );
            $class = $meta['class'];
            $prefix = $prefixes[$classToPrefix[$class]];
            $prefix = '[Alert '.$prefix.$class.'] ';
            $args = array($args[0]);
        } elseif (\in_array($method, array('profileEnd','table'))) {
            if (\is_array($args[0])) {
                $args = array($this->methodTable($args[0], $meta['columns']));
            }
            if ($meta['caption']) {
                \array_unshift($args, $meta['caption']);
            }
        } elseif ($method == 'trace') {
            \array_unshift($args, 'trace');
        } elseif (\in_array($method, array('group','groupCollapsed'))) {
            $this->depth ++;
        } elseif ($method == 'groupEnd' && $this->depth > 0) {
            $this->depth --;
        }
        $str = $prefix.$this->buildArgString($args);
        $str = \rtrim($str);
        if ($str) {
            $str = $strIndent.\str_replace("\n", "\n".$strIndent, $str);
            return $str."\n";
        }
        return '';
    }
public function processLogEntry ( $ method , $ args = array ( ) , $ meta = array ( ) ) { $ prefixes = array ( 'error' => '⦻ ', 'info' => 'ℹ ', 'log' => '' , 'warn' => '⚠ ', 'assert' => '≠ ', 'clear' => '⌦ ', 'count' => '✚ ', 'countReset' => '✚ ', 'time' => '⏱ ', 'timeLog' => '⏱ ', 'group' => '▸ ', 'groupCollapsed' => '▸ ', ) ; $ prefix = isset ( $ prefixes [ $ method ] ) ? $ prefixes [ $ method ] : '' ; $ strIndent = \ str_repeat ( '    ' , $ this -> depth ) ; if ( \ in_array ( $ method , array ( 'assert' , 'clear' , 'error' , 'info' , 'log' , 'warn' ) ) ) { if ( \ count ( $ args ) > 1 && \ is_string ( $ args [ 0 ] ) ) { $ hasSubs = false ; $ args = $ this -> processSubstitutions ( $ args , $ hasSubs ) ; if ( $ hasSubs ) { $ args = array ( \ implode ( '' , $ args ) ) ; } } } elseif ( $ method == 'alert' ) { $ classToPrefix = array ( 'danger' => 'error' , 'info' => 'info' , 'success' => 'info' , 'warning' => 'warn' , ) ; $ class = $ meta [ 'class' ] ; $ prefix = $ prefixes [ $ classToPrefix [ $ class ] ] ; $ prefix = '[Alert ' . $ prefix . $ class . '] ' ; $ args = array ( $ args [ 0 ] ) ; } elseif ( \ in_array ( $ method , array ( 'profileEnd' , 'table' ) ) ) { if ( \ is_array ( $ args [ 0 ] ) ) { $ args = array ( $ this -> methodTable ( $ args [ 0 ] , $ meta [ 'columns' ] ) ) ; } if ( $ meta [ 'caption' ] ) { \ array_unshift ( $ args , $ meta [ 'caption' ] ) ; } } elseif ( $ method == 'trace' ) { \ array_unshift ( $ args , 'trace' ) ; } elseif ( \ in_array ( $ method , array ( 'group' , 'groupCollapsed' ) ) ) { $ this -> depth ++ ; } elseif ( $ method == 'groupEnd' && $ this -> depth > 0 ) { $ this -> depth -- ; } $ str = $ prefix . $ this -> buildArgString ( $ args ) ; $ str = \ rtrim ( $ str ) ; if ( $ str ) { $ str = $ strIndent . \ str_replace ( "\n" , "\n" . $ strIndent , $ str ) ; return $ str . "\n" ; } return '' ; }
Return log entry as text

@param string $method method
@param array  $args   arguments
@param array  $meta   meta values

@return string
Return log entry as text