feat: add health and version commands

This commit is contained in:
Juan Pablo Villafáñez
2024-04-17 15:54:51 +02:00
parent f240d4e7cb
commit 4f3ebb245a
5 changed files with 125 additions and 10 deletions
@@ -0,0 +1,17 @@
package logging
import (
"github.com/owncloud/ocis/v2/ocis-pkg/log"
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
)
// Configure 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),
)
}