Logs not getting sent to Datadog when running Django shell inside a container
The logs that are created by the code running inside the container do get sent to Datadog, but when I'm in a shell session inside the container those logs get outputted in the terminal, but not sent to Datadog. Therefore, once I leave the session (if I don't copy and paste the logs into a file), they are forever lost.
TL;DR; Datadog Agent runs inside the container, but not inside the shell session inside the container
How can I make it so that the logs produced inside the shell session also get sent to Datadog ?