add source in logs

This commit is contained in:
daniel fusser 2023-08-28 22:15:32 +02:00
parent 48f26a58c9
commit 8fe1326350
1 changed files with 4 additions and 0 deletions

4
log.go
View File

@ -20,6 +20,10 @@ func init() {
tint.NewHandler(os.Stderr, &tint.Options{
Level: LogLvl,
TimeFormat: time.DateTime,
AddSource: true,
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
return a
},
}),
)