public function init( $config = [ ] )
    {
        $handlers = array_values( $config[ 'handlers' ] );

        foreach ( $handlers as $conf )
        {
            $class = $conf[ 'class' ];

            $handler = new $class( $conf );

            $this->addHandler( $handler );
        }
    }
public function init( $config = [ ] )
    {
        $handlers = array_values( $config[ 'handlers' ] );

        foreach ( $handlers as $conf )
        {
            $class = $conf[ 'class' ];

            $handler = new $class( $conf );

            $this->addHandler( $handler );
        }
    }
public function init ( $ config = [ ] ) { $ handlers = array_values ( $ config [ 'handlers' ] ) ; foreach ( $ handlers as $ conf ) { $ class = $ conf [ 'class' ] ; $ handler = new $ class ( $ conf ) ; $ this -> addHandler ( $ handler ) ; } }
Initialises the log.

@param array $config configuration array

@throws LogException if log file is missing
Initialises the log .