Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Output string `koanf:"output"`
Level string `koanf:"level"`
OpenTelemetry OpenTelemetry `koanf:"opentelemetry" mapstructure:",squash"`
NoGlobal bool `koanf:"no_global"`
NoColor bool `koanf:"no_color"`
}
type Handler ¶
type Handler func(opt *option)
func ExtendLocalLogger ¶
ExtendLocalLogger to extend the local logger instance.
func WithLifecycle ¶
func WithOtelAttributes ¶
func WithProvider ¶
func WithProvider(provider otellog.LoggerProvider) Handler
WithProvider to force use the given provider.
Click to show internal directories.
Click to hide internal directories.