smebberson / docker-alpine

Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
MIT License
596 stars 186 forks source link

Standardised approach to logging #81

Open smebberson opened 7 years ago

smebberson commented 7 years ago

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?

rbellamy commented 7 years ago

The default guidance is to splurt everything to stdout and stderr which is consistent with the mandate of the 12 Factor app on logging.

rbellamy commented 7 years ago

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...