change options
This commit is contained in:
@@ -2,12 +2,13 @@ package log
|
||||
|
||||
import (
|
||||
"github.com/rogeecn/atom/container"
|
||||
"github.com/rogeecn/atom/providers"
|
||||
"github.com/rogeecn/atom/utils/opt"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func Provide(o *providers.Options) error {
|
||||
func Provide(opts ...opt.Option) error {
|
||||
o := opt.New(opts...)
|
||||
var config Config
|
||||
if err := o.UnmarshalConfig(&config); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user