You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will more scalability, you could create new logger by logrus.New(), then use config to hijack it, then the new logger's config will be set, and the logger also could be hijack more than once, if your env changed, you just hijack again, then the config will take effect.
the hijack mode also could hijack logrus.StandardLogger(), then we could use logurs.XXXX for print errors, if we want change the logger's config, just hijack logrus.StandardLogger() again.
Ok. But can we use another string format for configure logger? (For example: TOML)
In previous versions for configuring we use struct. This struct could be filled by reflection.
Now I can't see ways to do it.
Saw some changes in repository. Can't understand purpose of using fixed notation for configuring and hijack mode.
The text was updated successfully, but these errors were encountered: