Wednesday 20 June 2018

Should we stop writing to log files?

[A spin of a thread that discusses console.log leaks]My hypothesis says: We should start writing to process.stdout instead of log files. The modern deployment models, k8s and serverless, dictate short-lived hardware that gets standard input and emits standard output, sometime without disc access or with disc that dies frequently. When you write to stdout (under the hood, this is just a file descriptor) those platforms will collect and forward the entries. No additional configuration is needed. On the other hand, writing to log files demands custom configurations + mounting + assuming write permissions - we deviate from the standards that the platforms suggest. What do you think?

Submitted June 20, 2018 at 09:06AM by yonatannn

No comments:

Post a Comment