Documentation ¶
Index ¶
- func CreateEncoder(cfg EncoderConfig) (zapcore.Encoder, error)
- func NewWriter(name string, config *common.Config) (zapcore.WriteSyncer, error)
- func RegisterEncoderType(name string, gen EncoderFactory)
- func RegisterWriterType(name string, f WriterFactory)
- type Appender
- type EncoderConfig
- type EncoderFactory
- type WriterFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEncoder ¶
func CreateEncoder(cfg EncoderConfig) (zapcore.Encoder, error)
func RegisterEncoderType ¶
func RegisterEncoderType(name string, gen EncoderFactory)
func RegisterWriterType ¶
func RegisterWriterType(name string, f WriterFactory)
Types ¶
type EncoderConfig ¶
type EncoderConfig struct {
Namespace common.ConfigNamespace `logos-config:",inline,replace"`
}
type WriterFactory ¶
type WriterFactory func(config *common.Config) (zapcore.WriteSyncer, error)
Click to show internal directories.
Click to hide internal directories.