protected function write(array $record)
    {
        if (!self::$sendHeaders) {
            return;
        }

        // WildFire-specific headers must be sent prior to any messages
        if (!self::$initialized) {
            self::$initialized = true;

            self::$sendHeaders = $this->headersAccepted();
            if (!self::$sendHeaders) {
                return;
            }

            foreach ($this->getInitHeaders() as $header => $content) {
                $this->sendHeader($header, $content);
            }
        }

        $header = $this->createRecordHeader($record);
        if (trim(current($header)) !== '') {
            $this->sendHeader(key($header), current($header));
        }
    }
protected function write(array $record)
    {
        if (!self::$sendHeaders) {
            return;
        }

        // WildFire-specific headers must be sent prior to any messages
        if (!self::$initialized) {
            self::$initialized = true;

            self::$sendHeaders = $this->headersAccepted();
            if (!self::$sendHeaders) {
                return;
            }

            foreach ($this->getInitHeaders() as $header => $content) {
                $this->sendHeader($header, $content);
            }
        }

        $header = $this->createRecordHeader($record);
        if (trim(current($header)) !== '') {
            $this->sendHeader(key($header), current($header));
        }
    }
protected function write ( array $ record ) { if ( ! self :: $ sendHeaders ) { return ; } // WildFire-specific headers must be sent prior to any messages if ( ! self :: $ initialized ) { self :: $ initialized = true ; self :: $ sendHeaders = $ this -> headersAccepted ( ) ; if ( ! self :: $ sendHeaders ) { return ; } foreach ( $ this -> getInitHeaders ( ) as $ header => $ content ) { $ this -> sendHeader ( $ header , $ content ) ; } } $ header = $ this -> createRecordHeader ( $ record ) ; if ( trim ( current ( $ header ) ) !== '' ) { $ this -> sendHeader ( key ( $ header ) , current ( $ header ) ) ; } }
Creates & sends header for a record, ensuring init headers have been sent prior

@see sendHeader()
@see sendInitHeaders()
@param array $record
Creates & sends header for a record ensuring init headers have been sent prior