3 ms·
Isn't this kind of thing part of the reason why you log to stdout instead of handling disk writes in your app?
by rmrfrmrf 9y ago
Isn't this kind of thing part of the reason why you log to stdout instead of handling disk writes in your app?
- crcl 9y agoA comment in the Medium article asked the same thing. The author's response: > I agree that piping all logs to stdout would be the best solution in case of Dockerized microservices. It’s just that in our case we were porting an existing system, which a) already heavily relied on logging to files b) consisted of many microservices itself, which we couldn’t yet split into separate Docker containers but also couldn’t pipe all their logs to the same stdout.
- rickycook 9y agowell that’s just an argument to use a pluggable logging system like in python/log4j where you don’t configure logging in your service/library and leave that up to the implementor. also let’s you log to a structured format like JSON and pipe that to a logging aggregator