consolidate log config in activitylog

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2026-01-08 12:25:44 +01:00
parent adc3e19649
commit efd6331a61
6 changed files with 20 additions and 40 deletions
+14
View File
@@ -0,0 +1,14 @@
package shared
import "github.com/opencloud-eu/opencloud/pkg/log"
// Configure initializes a service-specific logger instance.
func Configure(name string, commons *Commons, localServiceLogLevel string) log.Logger {
return log.NewLogger(
log.Name(name),
log.Level(localServiceLogLevel),
log.Pretty(commons.Log.Pretty),
log.Color(commons.Log.Color),
log.File(commons.Log.File),
)
}