`logging` Map
The logging section contains log configuration. You can also configure parameters for your container's [FireLens](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) log driver in this section (see examples [here](../developing/sidecars.en.md#sidecar-patterns)).
logging.`retention` Integer
Optional. The number of days to retain the log events. See [this page](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-retentionindays) for all accepted values. If omitted, the default is 30.
logging.`image` Map
Optional. The Fluent Bit image to use. Defaults to `public.ecr.aws/aws-observability/aws-for-fluent-bit:stable`.
logging.`destination` Map
Optional. The configuration options to send to the FireLens log driver.
logging.`enableMetadata` Map
Optional. Whether to include ECS metadata in logs. Defaults to `true`.
logging.`secretOptions` Map
Optional. The secrets to pass to the log configuration.
logging.`configFilePath` Map
Optional. The full config file path in your custom Fluent Bit image.
logging.`env_file` String
The path to a file from the root of your workspace containing the environment variables to pass to the logging sidecar container. For more information about the environment variable file, see [Considerations for specifying environment variable files](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html#taskdef-envfiles-considerations).