go-zero
go-zero copied to clipboard
feat(logx): support global output serviceName field
resolve #2351
PTAL @kevwan @charmfocus
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
ASK @kevwan @charmfocus
my 2 cents.
This is not useful in production, especially in microservices env. Reasons:
- in k8s, filebit collect the log with app name
- in raw deployment, different services use different files, usually we don't use system log, so no point to append service name in log.
Thank you for your advice. we'll discuss it internally. π