MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / GormLogger

Method GormLogger

api/pkg/di/container.go:239–245  ·  view source on GitHub ↗

GormLogger creates a new instance of gormLogger.Interface

()

Source from the content-addressed store, hash-verified

237
238// GormLogger creates a new instance of gormLogger.Interface
239func (container *Container) GormLogger() gormLogger.Interface {
240 container.logger.Debug("creating gormLogger.Interface")
241 return telemetry.NewGormLogger(
242 container.Tracer(),
243 container.Logger(6),
244 )
245}
246
247func (container *Container) connect(dsn string, config *gorm.Config) (db *gorm.DB, err error) {
248 return gorm.Open(postgres.Open(dsn), config)

Callers 3

DedicatedDBMethod · 0.95
DBWithoutMigrationMethod · 0.95
DBMethod · 0.95

Calls 3

TracerMethod · 0.95
LoggerMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected