docker-alpine
docker-alpine copied to clipboard
Standardised approach to logging
We need to move toward a standardised approach to logging. Some of the images do it differently at the moment.
The main factor is, should everything be splurted to stdout
and stderr
? We need to have a way to turn it off however.
I think in all instances, they should also go to file, so that any file based aggregation can take place.
Any other thoughts?
The default guidance is to splurt everything to stdout
and stderr
which is consistent with the mandate of the 12 Factor app on logging.
About "going to a file" I think that places an undue burden on the user of the image, as not every container will have storage that can support the persisted storage of log files...