mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-06 15:22:08 -04:00
Introduce Logging config struct
This commit is contained in:
parent
a26bf87882
commit
acde6ade69
1 changed files with 14 additions and 0 deletions
14
pkg/config/logging.go
Normal file
14
pkg/config/logging.go
Normal 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"`
|
||||
}
|
||||
Loading…
Reference in a new issue