Logging Question: Why are files avoided for logging in Linux?

I came across this post: Minimum amount of log file handling we can possibly get away with?.

Is this because output redirection is more efficient than doing I/O from Go? Are you all redirecting outputs to a different program? I would assume that if you’re redirecting output to a file it would be the same (and or worse)? I am a new developer so forgive the potentially dumb question.

Thanks, just curious. DAlba-sudo

Because unixes in general already have a well developed infrastructure for logging where you can set policies for centralisation, retention, compression, rotation, etc. that it would be silly for us and every other program to try to replicate.

1 Like