Sometimes I want to clone a logger - set some fields, give this prepared logger in a new context to a subfunction, but don't "pollute" the main logger, to be able to clone again.
I don't see this possible ATM - I don't have the xlog.Config, just xlog.FromContext.
Any idea?
Or only a new function (xlog.Clone(xlog.Logger) ?
Sometimes I want to clone a logger - set some fields, give this prepared logger in a new context to a subfunction, but don't "pollute" the main logger, to be able to clone again.
I don't see this possible ATM - I don't have the xlog.Config, just xlog.FromContext.
Any idea? Or only a new function (xlog.Clone(xlog.Logger) ?