init logger

This commit is contained in:
Hoang 2021-11-16 12:16:06 +07:00
parent ba3b0104ff
commit 79b32fa209
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/Selly-Modules/logger"
"github.com/Selly-Modules/mongodb" "github.com/Selly-Modules/mongodb"
"github.com/Selly-Modules/usermngmt/cache" "github.com/Selly-Modules/usermngmt/cache"
"github.com/Selly-Modules/usermngmt/database" "github.com/Selly-Modules/usermngmt/database"
@ -55,6 +56,8 @@ func Init(config Config) (*Service, error) {
return nil, err return nil, err
} }
logger.Init("usermngmt", "")
// Set database // Set database
database.Set(db, config.TablePrefix) database.Set(db, config.TablePrefix)