Why are you creating a logging file inside the container? Configuring a logging driver would be more flexible.
The following example is contrived, but demonstrates how logging events from all your containers could be collected. I suggest reading further into the options available from fluentd
Example
First run fluentd within a container to collect log events