Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Multilog Study

17 Sep 2022 »

install

https://gist.github.com/toddlers/9364259

wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
tar -xzvf daemontools-0.76.tar.gz
rm daemontools-0.76.tar.gz
cd admin/daemontools-0.76

echo gcc -O2 -include /usr/include/errno.h > src/conf-cc
./package/install

https://zpz.github.io/blog/log-rotation-of-stdout/

python -u myapp.py 2>&1 | tee >(multilog s1000000 n10 /path-to-log/myapp)