Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component represents single component logging interface
func (*Component) S ¶
func (c *Component) S() *zap.SugaredLogger
S returns sugared logger which provides less verbose API
type ComponentConfig ¶
type ComponentConfig struct { Preset string `json:"preset"` Level string `json:"level"` JSON bool `json:"json"` TimestampFormat string `json:"timestamp_format"` }
ComponentConfig specifies separate logger configuration
type Config ¶
type Config struct {
ComponentConfigs map[string]*ComponentConfig `json:"components"`
}
Config provides structured logger configuration
Click to show internal directories.
Click to hide internal directories.