// Package observability provides structured logging for the correlator service.
// Implementation is delegated to shared/go/ja4common/logger to avoid duplication.
package observability

import jalogger "github.com/antitbone/ja4/ja4common/logger"

// Logger est un alias du type Logger de ja4common pour la journalisation structurée.
type Logger = jalogger.Logger

// LogLevel est un alias du type LogLevel de ja4common pour le niveau de journalisation.
type LogLevel = jalogger.LogLevel

const (
	DEBUG LogLevel = jalogger.DEBUG
	INFO  LogLevel = jalogger.INFO
	WARN  LogLevel = jalogger.WARN
	ERROR LogLevel = jalogger.ERROR
)

// NewLogger creates a new Logger with INFO level.
func NewLogger(prefix string) *Logger { return jalogger.New(prefix) }

// NewLoggerWithLevel creates a new Logger with the specified minimum level.
func NewLoggerWithLevel(prefix, level string) *Logger { return jalogger.NewWithLevel(prefix, level) }

// ParseLogLevel converts a string to LogLevel.
func ParseLogLevel(level string) LogLevel { return jalogger.ParseLogLevel(level) }
