- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CallerFrame (0.04 sec)
-
utils/utils.go
s = dir } 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 { pcs := [13]uintptr{} // the third caller usually from gorm internal
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Oct 30 10:56:26 UTC 2025 - 4.5K bytes - Viewed (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{}) {Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Oct 30 10:56:26 UTC 2025 - 2.9K bytes - Viewed (0)