mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Currently, the `source` method in `slog.Record` is not accessible to
custom handlers, requiring developers to re-implement logic for
retrieving source location information. This commit exports the `source`
method as `Source`, enabling consistent access for custom logging
handlers and reducing code redundancy.
Fixes #70280
Change-Id: I3eb3bc60658abc5de95697a10bddd11ab54c6e13
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| 46771.txt | ||
| 49580.txt | ||
| 63796.txt | ||
| 67002.txt | ||
| 67516.txt | ||
| 70250.txt | ||
| 70280.txt | ||
| 70780.txt | ||
| 71122.txt | ||
| 72843.txt | ||