public ContainerDefinition withLogConfiguration(LogConfiguration logConfiguration) {
        setLogConfiguration(logConfiguration);
        return this;
    }
<p>
The log configuration specification for the container.
</p>
<p>
This parameter maps to <code>LogConfig</code> in the <a
href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section of the
<a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the <code>--log-driver</code>
option to <a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>. By
default, containers use the same logging driver that the Docker daemon uses. However the container can use a
different logging driver than the Docker daemon by specifying a log driver with this parameter in the container
definition. To use a different logging driver for a container, the log system must be configured properly on the
container instance (or on a different log server for remote logging options). For more information about the
options for different supported log drivers, see <a
href="https://docs.docker.com/engine/admin/logging/overview/">Configure logging drivers</a> in the Docker
documentation.
</p>
<note>
<p>
Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the
<a>LogConfiguration</a> data type). Additional log drivers may be available in future releases of the Amazon ECS
container agent.
</p>
</note>
<p>
This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the
Docker Remote API version on your container instance, log in to your container instance and run the following
command: <code>sudo docker version --format '{{.Server.APIVersion}}'</code>
</p>
<note>
<p>
The Amazon ECS container agent running on a container instance must register the logging drivers available on
that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed
on that instance can use these log configuration options. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS Container
Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>
</note>

@param logConfiguration
       The log configuration specification for the container.</p>
       <p>
       This parameter maps to <code>LogConfig</code> in the <a
       href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section
       of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
       <code>--log-driver</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>. By default,
       containers use the same logging driver that the Docker daemon uses. However the container can use a
       different logging driver than the Docker daemon by specifying a log driver with this parameter in the
       container definition. To use a different logging driver for a container, the log system must be configured
       properly on the container instance (or on a different log server for remote logging options). For more
       information about the options for different supported log drivers, see <a
       href="https://docs.docker.com/engine/admin/logging/overview/">Configure logging drivers</a> in the Docker
       documentation.
       </p>
       <note>
       <p>
       Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the
       <a>LogConfiguration</a> data type). Additional log drivers may be available in future releases of the
       Amazon ECS container agent.
       </p>
       </note>
       <p>
       This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To
       check the Docker Remote API version on your container instance, log in to your container instance and run
       the following command: <code>sudo docker version --format '{{.Server.APIVersion}}'</code>
       </p>
       <note>
       <p>
       The Amazon ECS container agent running on a container instance must register the logging drivers available
       on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before
       containers placed on that instance can use these log configuration options. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS
       Container Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java