Update logger documentation based on configuration change
This commit is contained in:
parent
9f27c1dade
commit
38b4074745
|
@ -5,8 +5,10 @@ By default, FOSElasticaBundle sets a logger against each Elastica client configu
|
|||
logs all information sent to and received from Elasticsearch. This can lead to large
|
||||
memory usage during population or reindexing of an index.
|
||||
|
||||
FOSElasticaBundle provides an option to disable a logger by setting the property on the
|
||||
client configuration to false:
|
||||
By default FOSElasticaBundle will only enable a logger when debug mode is enabled, meaning
|
||||
in a production environment there wont 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.
|
||||
|
||||
```yaml
|
||||
# app/config/config.yml
|
||||
|
@ -14,12 +16,9 @@ fos_elastica:
|
|||
clients:
|
||||
default:
|
||||
host: example.com
|
||||
logger: false
|
||||
logger: true
|
||||
```
|
||||
|
||||
It may be desirable to set this configuration property to `%kernel.debug%`, which would
|
||||
only switch the logging capabilities of FOSElasticaBundle on when debugging is enabled.
|
||||
|
||||
Custom Logger Service
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue