Friday, October 16, 2020

Docker logger, what all it captures?

 By default, Docker captures the standard output (and standard error) of all your containers, and writes them in files using the JSON format. The JSON format annotates each line with its origin (stdout or stderr) and its timestamp. Each log file contains information about only one container.


{"log":"Log line is here\n","stream":"stdout","time":"2019-01-01T11:11:11.111111111Z"}


References:

https://docs.docker.com/config/containers/logging/json-file/

No comments:

Post a Comment