add source in logs
This commit is contained in:
parent
48f26a58c9
commit
8fe1326350
4
log.go
4
log.go
@ -20,6 +20,10 @@ func init() {
|
|||||||
tint.NewHandler(os.Stderr, &tint.Options{
|
tint.NewHandler(os.Stderr, &tint.Options{
|
||||||
Level: LogLvl,
|
Level: LogLvl,
|
||||||
TimeFormat: time.DateTime,
|
TimeFormat: time.DateTime,
|
||||||
|
AddSource: true,
|
||||||
|
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
|
||||||
|
return a
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user