This commit is contained in:
2024-10-13 13:31:58 +04:00
commit aec8d7ed48
54 changed files with 2827 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package logger
import (
"log/slog"
"os"
)
func NewStdLogger() *slog.Logger {
return slog.New(
slog.NewJSONHandler(
os.Stdout,
&slog.HandlerOptions{AddSource: true},
),
)
}