Configuration
All the options of the bundle with their default values.
Enable a node
A node with enabled: false is off until you declare it. Use true, ~ or an array to enable it, and false to disable it. Inside an array, enabled does the same, for example enabled: '%env(bool:AUDIT_LOG_ES_ENABLED)%'.
Reference
symfonycorp_audit_log:
silent_failures: true # false: throw an audit failure (dev and test)
sources:
http_kernel: { enabled: false, sub_requests: false, sensitive_params: { token: hidden, password: hidden, email: hidden } }
console: { enabled: false }
doctrine_orm: { enabled: false, entity_managers: [] } # empty = all
doctrine_odm: { enabled: false, document_managers: [] } # empty = all
security: { enabled: false }
messenger: { enabled: false }
workflow: { enabled: false }
outputs:
dbal: { enabled: false, connection: ~, table_name: audit_log, auto_setup: false }
elasticsearch: { enabled: false, client: Elastic\Elasticsearch\Client, index: audit_log, auto_setup: false }
mongodb: { enabled: false, document_manager: ~, collection: audit_log, auto_setup: false }
filesystem: { enabled: false, path: ~, formatter: json, file_permissions: 0o600 } # path is required
stdout: { enabled: false, stream: stdout, formatter: json }
in_memory: { enabled: false }
context_providers:
request: { enabled: false, anonymize_ip: true }
user: false
transaction_id: false
message_bus: { enabled: false, service: messenger.default_bus }
integrity: { enabled: false, secret: ~, algorithm: sha256 } # secret is required
keyed_hash_secret: ~
indexed_context: [user_identifier, subject_class, subject_id, ip]Where each option is described
silent_failures: Outputs.sources: Sources, HTTP Kernel and Doctrine ORM & ODM.outputs: Outputs and one page for each output.context_providers: User, IP and request ID.message_bus: Async writes.integrity: Integrity.keyed_hash_secret: Transformations.indexed_context: PHP and Twig.
Dump the reference
To see all options with their description, run:
$ bin/console config:dump-reference symfonycorp_audit_log