Fix #7: implement AddSource flag, add as message

This commit is contained in:
2024-01-22 08:45:36 +01:00
committed by T.v.Dein
parent d53c1db7d0
commit 33798bddb3
3 changed files with 26 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ func main() {
opts := &yadu.Options{
Level: slog.LevelDebug,
ReplaceAttr: removeTime,
AddSource: true,
}
logger := slog.New(yadu.NewHandler(os.Stdout, opts))