2 ms·
> The Docker logging model of line-by-line stdout/stderr doesn't seem very useful beyond debugging in the local console. It's a well-understood pattern that He
by jacques_chester 10y ago
> The Docker logging model of line-by-line stdout/stderr doesn't seem very useful beyond debugging in the local console.
It's a well-understood pattern that Heroku made more visible under "The 12 Factor App".
stdout/stderr require no configuration in any language that I'm aware of. Why should the app care about how to wire up logging? That's a platform concern.
On Cloud Foundry you get Loggregator, which frankly needs improvement, but for the most part you don't care about how to wire up logging. You print to stdout or stderr and the platform wicks that away to a firehose service for you. You can hook up kafka to spout, or elasticsearch, or anything else you like.
Disclosure: I work at Pivotal, we donate the majority of engineering to Cloud Foundry.