When I dump the docker log of the container using the below command
docker logs containername > containername.log
The output generated for the file is not legible to read and comprehend - No Date for log is mentioned - Unknown escape characters are added
I am not sure if I need to dump the logs with some extra option added to the above command or there is some bigger gap in my understanding.
Example of the output :
Hosting environment: Production Content root path: /app Now listening on: http://[::]:80 Application started. Press Ctrl+C to shut down. [39;49m[30m[[39;49m[39;49m[37m11:21:25.208 +00:00[39;49m[39;49m[30m [39;49m[39;49m[37mINF[39;49m[39;49m[30m] [39;49m[39;49m[36mRequest starting HTTP/1.1 GET http://localhost:31201/swagger [39;49m
[39;49m[30m[[39;49m[39;49m[37m11:21:25.943 +00:00[39;49m[39;49m[30m [39;49m[39;49m[37m[39;49m[37m[41mERR[39;49m[39;49m[30m] [39;49m[39;49m[37mLevel = ErrorMessage = Request Execution not successful for the following details : URL = http://localhost:31201/swagger
I am able to see the output clearly using docker logs command. I am not sure why these special characters are added to the output.