- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for callerFrame (0.09 seconds)
-
utils/utils.go
} return filepath.ToSlash(s) + "/" } // CallerFrame retrieves the first relevant stack frame outside of GORM's internal implementation files. // It skips: // - GORM's core source files (identified by gormSourceDir prefix) // - Exclude test files (*_test.go) // - go-gorm/gen's Generated files (*.gen.go) func CallerFrame() runtime.Frame { // Preserve the original CallerFrame stack depth after introducing callerFrame().
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 4.9K bytes - Click Count (0) -
logger/slog.go
if ctx == nil { ctx = context.Background() } if !l.Logger.Enabled(ctx, level) { return } r := slog.NewRecord(time.Now(), level, msg, utils.CallerFrame().PC) r.Add(args...) _ = l.Logger.Handler().Handle(ctx, r) } // ParamsFilter filter params func (l *slogLogger) ParamsFilter(ctx context.Context, sql string, params ...interface{}) (string, []interface{}) {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Oct 30 10:56:26 GMT 2025 - 2.9K bytes - Click Count (0)