certwarden-deploy/internal/logger/logger.go
2024-06-28 15:28:54 +02:00

18 lines
252 B
Go

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))
}