Documentation ¶
Index ¶
- func IsEnabled(cfg *Config) bool
- func LogWithFunc(msg string, err error, fn LogFunc, fields ...zapcore.Field)
- func LogWithLogger(msg string, err error, logger *zap.Logger, fields ...zapcore.Field)
- func Meta(ctx context.Context) []zapcore.Field
- func NewConfig(env env.Environment, config *Config) (*zap.Config, error)
- func NewLogger(params LoggerParams) (*zap.Logger, error)
- type Config
- type LogFunc
- type LoggerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogWithFunc ¶ added in v1.163.2
LogWithFunc for zap.
func LogWithLogger ¶ added in v1.163.2
LogWithLogger for zap.
Types ¶
type Config ¶ added in v1.97.0
type Config struct {
Level string `yaml:"level,omitempty" json:"level,omitempty" toml:"level,omitempty"`
}
Config for zap.
Click to show internal directories.
Click to hide internal directories.