Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LogMode (0.45 sec)

  1. logger/slog.go

    		SlowThreshold:             config.SlowThreshold,
    		Parameterized:             config.ParameterizedQueries,
    		IgnoreRecordNotFoundError: config.IgnoreRecordNotFoundError,
    	}
    }
    
    func (l *slogLogger) LogMode(level LogLevel) Interface {
    	newLogger := *l
    	newLogger.LogLevel = level
    	return &newLogger
    }
    
    func (l *slogLogger) Info(ctx context.Context, msg string, data ...interface{}) {
    	if l.LogLevel >= Info {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 10:56:26 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. gorm.go

    	return db.Session(&Session{Context: ctx})
    }
    
    // Debug start debug mode
    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    	return tx.Session(&Session{
    		Logger: db.Logger.LogMode(logger.Info),
    	})
    }
    
    // Set store value with key into current db instance's context
    func (db *DB) Set(key string, value interface{}) *DB {
    	tx := db.getInstance()
    	tx.Statement.Settings.Store(key, value)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top