You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
601 B
26 lines
601 B
package gol
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Configuration struct {
|
|
Stdout struct {
|
|
Level string `yaml:"level"`
|
|
} `yaml:"console"`
|
|
File struct {
|
|
Enabled bool `yaml:"enabled"`
|
|
Level string `yaml:"level"`
|
|
Filename string `yaml:"filename"`
|
|
MaxSize int `yaml:"maxsize"`
|
|
MaxAge int `yaml:"maxage"`
|
|
MaxBackups int `yaml:"maxbackups"`
|
|
LocalTime bool `yaml:"localtime"`
|
|
Compress bool `yaml:"compress"`
|
|
}
|
|
Sentry struct {
|
|
Level string `yaml:"level"`
|
|
DSN string `yaml:"dsn"`
|
|
Timeout time.Duration `yaml:"timeout"`
|
|
} `yaml:"sentry"`
|
|
}
|
|
|