Introduce Logging config struct

This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2021-09-20 13:23:00 +02:00 committed by Eric Lippmann
parent a26bf87882
commit acde6ade69

14
pkg/config/logging.go Normal file
View file

@ -0,0 +1,14 @@
package config
import (
"github.com/icinga/icingadb/internal/logging"
"go.uber.org/zap/zapcore"
)
// Logging defines Logger configuration.
type Logging struct {
// zapcore.Level at 0 is for info level.
Level zapcore.Level `yaml:"level" default:"0"`
logging.Options `yaml:"options"`
}