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}