Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Elastica Bundle Laravel Package

bok/elastica-bundle

View on GitHub
Deep Wiki
Context7

Logging and its performance considerations

By default, FOSElasticaBundle sets a logger against each Elastica client configured and logs all information sent to and received from Elasticsearch. This can lead to large memory usage during population or reindexing of an index.

By default, FOSElasticaBundle will only enable a logger when debug mode is enabled, meaning in a production environment there won't be a logger enabled. To enable a logger anyway, you can set the logger property of a client configuration to true or a service id of a logging service you wish to use.

# app/config/config.yml
fos_elastica:
    clients:
        default:
            host: example.com
            logger: true

Custom Logger Service

It is also possible to specify a custom logger instance to be injected into each client by specifying the service id of the logger you wish to use.

# app/config/config.yml
fos_elastica:
    clients:
        default:
            host: example.com
            logger: 'acme.custom.logger'
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
graham-campbell/flysystem
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/opensearch-client
directorytree/opensearch-adapter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin