src/LogManager.php
private function _getLevelAndTargetLoggers( $target )
    {
        $target = strpos($target, ':') !== false ? explode( ':' , $target ) : ['', '*'];
        list($level,$target_loggers) = $target;
        $target_loggers = explode( ',' , $target_loggers );
        $target_loggers = array_map( 'trim', $target_loggers );
        if (in_array('*',$target_loggers))
        {
            $target_loggers = array_keys($this->loggers);
        }
        return array( $level, $target_loggers );
    }
private function _getLevelAndTargetLoggers( $target )
    {
        $target = strpos($target, ':') !== false ? explode( ':' , $target ) : ['', '*'];
        list($level,$target_loggers) = $target;
        $target_loggers = explode( ',' , $target_loggers );
        $target_loggers = array_map( 'trim', $target_loggers );
        if (in_array('*',$target_loggers))
        {
            $target_loggers = array_keys($this->loggers);
        }
        return array( $level, $target_loggers );
    }
private function _getLevelAndTargetLoggers ( $ target ) { $ target = strpos ( $ target , ':' ) !== false ? explode ( ':' , $ target ) : [ '' , '*' ] ; list ( $ level , $ target_loggers ) = $ target ; $ target_loggers = explode ( ',' , $ target_loggers ) ; $ target_loggers = array_map ( 'trim' , $ target_loggers ) ; if ( in_array ( '*' , $ target_loggers ) ) { $ target_loggers = array_keys ( $ this -> loggers ) ; } return array ( $ level , $ target_loggers ) ; }
Split target loggers and levels from target list

format of parameter '$target_list':

[level]:[logger1],[logger2],...

ex) "I:app,debug,sql"

@param string $target     log target

@return array
Split target loggers and levels from target list