go-zero
go-zero copied to clipboard
logx support SetFormatter
logx current only support 2 kind of log encoding: json and plain.
can add more flexible log formatter like logrus
for example:
logx.SetFormatter(&logrus.JSONFormatter{})
so we can use many third-party formatter in project.