MCPcopy Create free account
hub / github.com/clouditor/clouditor / WithLogger

Function WithLogger

persistence/gorm/gorm.go:108–112  ·  view source on GitHub ↗

WithLogger is an option to configure Storage to use a Logger

(logger logger.Interface)

Source from the content-addressed store, hash-verified

106
107// WithLogger is an option to configure Storage to use a Logger
108func WithLogger(logger logger.Interface) StorageOption {
109 return func(s *storage) {
110 s.config.Logger = logger
111 }
112}
113
114// WithAdditionalAutoMigration is an option to add additional types to GORM's auto-migration.
115func WithAdditionalAutoMigration(types ...any) StorageOption {

Callers 1

NewStorageFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected