refactor NewLogger away to ocis-pkg

This commit is contained in:
A.Unger
2021-11-08 19:38:40 +01:00
parent 9d0809bd81
commit e7f9fb3bcb
5 changed files with 20 additions and 18 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ import (
"context"
"strings"
"github.com/owncloud/ocis/ocis-pkg/log"
gofig "github.com/gookit/config/v2"
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
"github.com/owncloud/ocis/ocis-pkg/shared"
@@ -55,7 +57,7 @@ func Server(cfg *config.Config) *cli.Command {
return nil
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)
logger := log.LoggerFromConfig("accounts", cfg.Log)
err := tracing.Configure(cfg)
if err != nil {
return err