Replies: 1 comment
-
I'm not sure what you are suggesting. Redirecting logs to a file |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
log.Println()默认为标准错误输出;
想要把输出的内容重定向到日志文件中,应该把
go run receive_logs_direct.go warning error > logs_from_rabbit.log
改成go run receive_logs_direct.go warning error 2> logs_from_rabbit.log
Beta Was this translation helpful? Give feedback.
All reactions