Elasticsearch handler

CloneableInstantiable
ExtendsMonolog\Handler\AbstractProcessingHandler
Monolog\Handler\AbstractHandler
Monolog\Handler\Handler
ImplementsMonolog\Handler\FormattableHandlerInterface
Monolog\Handler\HandlerInterface
Monolog\Handler\ProcessableHandlerInterface
Monolog\ResettableInterface
Methods
public __construct(Elasticsearch\Client $client, array $options = [], $level = 100, bool $bubble = true)
 


    public Monolog\Handler\Handler::__destruct()
    public Monolog\Handler\Handler::__sleep()
    public Monolog\Handler\Handler::close() : void
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::getBubble() : bool
     
    Gets the bubbling behavior.

    • return bool true means that this handler allows bubbling. false means that bubbling is not permitted.
    public Monolog\Handler\AbstractProcessingHandler::getFormatter() : Monolog\Formatter\FormatterInterface
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::getLevel() : int
     
    Gets minimum logging level at which this handler will be triggered.

    • return int
    public getOptions() : array
     
    Getter options

    • return array
    public Monolog\Handler\AbstractProcessingHandler::handle(array $record) : bool
     
    {@inheritdoc}

    public handleBatch(array $records) : void
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::isHandling(array $record) : bool
     
    {@inheritdoc}

    public Monolog\Handler\AbstractProcessingHandler::popProcessor() : callable
     
    {@inheritdoc}

    public Monolog\Handler\AbstractProcessingHandler::pushProcessor(callable $callback) : Monolog\Handler\HandlerInterface
     
    {@inheritdoc}

    • suppress PhanTypeMismatchReturn
    public Monolog\Handler\AbstractProcessingHandler::reset()
    public Monolog\Handler\AbstractHandler::setBubble(bool $bubble) : self
     
    Sets the bubbling behavior.

    • return self
    public setFormatter(Monolog\Formatter\FormatterInterface $formatter) : Monolog\Handler\HandlerInterface
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::setLevel( $level) : self
     
    Sets minimum logging level at which this handler will be triggered.

    • return self
    Properties
    protected Monolog\Handler\AbstractHandler::$bubble
    protected $client
     


    • var Client
    protected Monolog\Handler\AbstractProcessingHandler::$formatter
     


    • var FormatterInterface
    protected Monolog\Handler\AbstractHandler::$level
    protected $options
     


    • var array Handler config options
    protected Monolog\Handler\AbstractProcessingHandler::$processors
     


    • var callable[]
    Methods
    protected bulkSend(array $records) : void
     
    Use Elasticsearch bulk API to send list of documents

    • throws RuntimeException
    protected createExceptionFromError(array $error) : Elasticsearch\Common\Exceptions\RuntimeException
     
    Creates elasticsearch exception from error array

      protected createExceptionFromResponses(array $responses) : Elasticsearch\Common\Exceptions\RuntimeException
       
      Creates elasticsearch exception from responses array

      Only the first error is converted into an exception.

        protected getDefaultFormatter() : Monolog\Formatter\FormatterInterface
         
        {@inheritDoc}

        protected Monolog\Handler\AbstractProcessingHandler::processRecord(array $record) : array
         
        Processes a record.

        protected Monolog\Handler\AbstractProcessingHandler::resetProcessors() : void
        protected write(array $record) : void
         
        {@inheritDoc}

        © 2020 Bruce Wells
        Search Namespaces \ Classes
        ConfigurationNumbers (0-9.) only