From cc4cc4961762538d010724f4fa832c80f2ee526c Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 18 Jul 2024 17:59:25 +0200 Subject: [PATCH] main logger --- entrypoint.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.go b/entrypoint.go index 613fae1..8b0befb 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -34,6 +34,10 @@ func Init(appName string) { mongo.MONGOService.Init(models.GetModelsNames(), GetConfig()) } +func GetLogger() logs.Logger { + return logs.GetLogger() +} + func LoadOne(collection LibDataEnum, id string) LibData { d, err := models.Model(collection.EnumIndex()).GetAccessor().LoadOne(id) return LibData{Data: d, Err: err}