<div dir="ltr">Hello!<div><br></div><div>On my work I have to write in golang, so, with my erlang background I used to write logs into file on disk via lager, for me it's very conveniently and I see some pros:</div><div><br></div><div>- We can route logs by application and control them are more flexible;</div><div>- We can control when and what and how to sink data to disk, so, we have some guarantees.</div><div><br></div><div>For me, stdout/stderr cons is stdX it's always pipe, so, when log reader got stuck, all my app is got stuck too.</div><div><br></div><div>The my very (for me) strange golang programmers colleagues, says - no, it's wrong and bad, we all must write logs to stdout, here there is cons for write log files:</div><div>- Disk can corrupt! Write to stdout, catch up by journald and route to some place. So, there is no disk point of failure any more, you app now network depends only;</div><div>- Stdout more flexible, it's more cross platform; </div><div>- Hey, boy, did you know about 12 app factor (*oh my god*)?</div><div><br></div><div>Sorry for full of pain and holly war topic, but for me is very interesting what's erlang community think about it?</div><div><br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 914 8 820 815<div><br></div></div></div></div>
</div></div>