upadted to 1.24.0; fixed stb and spiddped doubles in precene

This commit is contained in:
2025-03-03 09:28:41 +02:00
parent 0ecf0ddec1
commit 203f834f65
41 changed files with 1058 additions and 219 deletions

View File

@@ -0,0 +1,23 @@
package logging
import (
"log/slog"
"os"
)
func custom() {
//logger := log.New(os.Stderr, "INFO\t", log.LstdFlags|log.Lmicroseconds|log.Lshortfile)
}
// New check this later https://github.com/hedzr/logg
func New() {
handlerOpts := &slog.HandlerOptions{
Level: slog.LevelDebug,
//AddSource: true,
}
logger := slog.New(slog.NewJSONHandler(os.Stderr, handlerOpts))
//.WithAttrs([]slog.Attr{slog.String("app_version", "v0.0.1")})
slog.SetDefault(logger)
}