Extend skogul.Identity and merge with logging #234
Labels
core/config
Anything dealing with the configuration subsystem
core/modules
Anything dealing with the general module support
enhancement
New feature or request
What I want is for modules to be able to have something like:
and have skogul.Log look up f to find the name, which we have now, but also the family (receiver/sender/etc) and implementation (http/net/file/sql). It would significantly reduce boilerplate for logging and at the same time enrich the log data noticeably.
Or something of the like. It means slightly extending skogul.Identity, which really isn't a problem. Today, it's
map[interface{}]string
, if instead, we add a ModuleIdentity type:That could be used instead (slightly unsure about Implementation, but worth considering). I imagine there are other benefits too.
The text was updated successfully, but these errors were encountered: