certwarden-deploy/internal/logger/logger.go

19 lines
252 B
Go
Raw Normal View History

2024-06-28 15:28:54 +02:00
package logger
import (
"log/slog"
"os"
)
func InitializeLogger() {
// TODO: Different Log levels
opts := &slog.HandlerOptions{
Level: slog.LevelInfo,
}
handler := slog.NewTextHandler(os.Stdout, opts)
slog.SetDefault(slog.New(handler))
}