docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

Standardised approach to logging

Open smebberson opened this issue 7 years ago • 2 comments

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?

smebberson avatar Mar 29 '17 00:03 smebberson

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 avatar Apr 04 '17 21:04 rbellamy

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

rbellamy avatar Apr 04 '17 21:04 rbellamy