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:
|
||
|---|---|---|
| .. | ||
| archive/tar | ||
| crypto | ||
| debug/elf | ||
| go | ||
| io/fs | ||
| log/slog | ||
| mime/multipart | ||
| net | ||
| os | ||
| regexp/syntax | ||
| sync | ||
| testing/fstest | ||
| unicode | ||
| 0-heading.md | ||
| README | ||
API changes and other small changes to the standard library go here.