mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 09:48:09 -07:00
(wip) fix invalid http compact address encode
* add packages to loggers * split config examples with different storages
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user