I'm using The Spotify Maven Docker plugin to buid and deploy docker images
To build docker image of this project run the following commands:
mvn package
mvn dockerfile:build
docker run -p 8080:8080 ozay/ecs-logging:0.0.1-SNAPSHOT
docker ps
docker exec -it c4a39a346bcb ash
cd var/log/ecs-sample-service
you will see two log files ecs-sample-service.json and _ecs-sample-service.log_with the following content: