Files
isp-gate-service/log/options.go
T
2021-10-22 11:00:49 +03:00

22 lines
319 B
Go

package log
type Option func(a *Adapter)
func WithDevelopmentMode() Option {
return func(a *Adapter) {
a.devMode = true
}
}
func WithFileRotation(r Rotation) Option {
return func(a *Adapter) {
a.rotation = &r
}
}
func WithLevel(level Level) Option {
return func(a *Adapter) {
a.initialLevel = level
}
}