ensure commands for all services

This commit is contained in:
Willy Kloucek committed 2022-05-03 15:12:34 +02:00
1 parent f643de22c4
commit 977c4fd9e9
184 files changed
+5690 -3268

No files matched your search

@@ -0,0 +1,17 @@
package logging
import (
"github.com/owncloud/ocis/extensions/auth-basic/pkg/config"
"github.com/owncloud/ocis/ocis-pkg/log"
)
// LoggerFromConfig initializes a service-specific logger instance.
func Configure(name string, cfg *config.Log) log.Logger {
return log.NewLogger(
log.Name(name),
log.Level(cfg.Level),
log.Pretty(cfg.Pretty),
log.Color(cfg.Color),
log.File(cfg.File),
)
}