charmbracelet / charmbracelet/log
Change default caller format
Open
enhancement
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
Currently the caller format is
```go
caller = fmt.Sprintf("<%s>", caller)
```
Which yields
```console
2024/11/24 00:17:22 INFO Installing browser...
```
When I click it in the console in VSCode it cannot open the file. that's very useful for me to click it and open the line where the logs comes from automatically.

I suggest changing a bit the format of the caller. for instance with `caller = fmt.Sprintf("[%s]", caller)` it's clickable
Contributor guide
Assessment
This issue has not been assessed yet.