public function addLogHandler(array $logHandlers, $createLogger = false) {
        try {
            $this->configuredLogHandlers = array_merge($this->configuredLogHandlers, $logHandlers);

            if ($createLogger === true) {
                $this->createLogger($this->channelName);
                $this->createLogHandlers();
            }            
        } catch (Exception $ex) {
            throw new LoggerException (
                "An exception occurred when adding the Log Handler to "
                . $this->channelName
                . ":"
                . $ex->getMessage()
            );
        }
    }
public function addLogHandler(array $logHandlers, $createLogger = false) {
        try {
            $this->configuredLogHandlers = array_merge($this->configuredLogHandlers, $logHandlers);

            if ($createLogger === true) {
                $this->createLogger($this->channelName);
                $this->createLogHandlers();
            }            
        } catch (Exception $ex) {
            throw new LoggerException (
                "An exception occurred when adding the Log Handler to "
                . $this->channelName
                . ":"
                . $ex->getMessage()
            );
        }
    }
public function addLogHandler ( array $ logHandlers , $ createLogger = false ) { try { $ this -> configuredLogHandlers = array_merge ( $ this -> configuredLogHandlers , $ logHandlers ) ; if ( $ createLogger === true ) { $ this -> createLogger ( $ this -> channelName ) ; $ this -> createLogHandlers ( ) ; } } catch ( Exception $ ex ) { throw new LoggerException ( "An exception occurred when adding the Log Handler to " . $ this -> channelName . ":" . $ ex -> getMessage ( ) ) ; } }
Add log handlers to the configuration

@param array $logHandlers - Array of log handler configuration. The alphanumeric keys are the namespace
@param bool $createLogger - Boolean flag. If true, create concrete Logger and instantiate the log handlers
Add log handlers to the configuration