在CentOS上分析Golang日志可参考以下方法:
tail -f
cat
less
grep
awk
awk '/error/ {count++} END {print count}' logfile.log
logrotate
logrus
zap