add new notifications service

This commit is contained in:
David Christofas
2022-02-18 15:44:53 +01:00
parent b16ada2eec
commit 238d2dfdbc
17 changed files with 352 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package logging
import (
"github.com/owncloud/ocis/notifications/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),
)
}