(wip) fix invalid http compact address encode

* add packages to loggers
* split config examples with different storages
This commit is contained in:
Lawrence, Rendall
2022-10-25 18:38:55 +03:00
parent a9d1642615
commit c1e041b4f8
19 changed files with 368 additions and 281 deletions
+2
View File
@@ -52,11 +52,13 @@ func (m MapConfig) Unmarshal(into any) (err error) {
return
}
// NamedMapConfig encapsulates MapConfig with string Name
type NamedMapConfig struct {
Name string
Config MapConfig
}
// MarshalZerologObject writes Name and Config into zerolog event
func (nm NamedMapConfig) MarshalZerologObject(e *zerolog.Event) {
e.Str("name", nm.Name).Dict("config", zerolog.Dict().EmbedObject(nm.Config))
}