Build a Python script to monitor and rotate Docker container logs — Development Task