slog2hclog

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlogLevelTrace = slog.LevelDebug - 4
	SlogLevelOff   = slog.LevelError + 4
)

Variables

This section is empty.

Functions

func New

func New(l *slog.Logger) hclog.Logger

New wraps a slog.Logger to a hclog.Logger with info log level.

func NewWithLevel

func NewWithLevel(l *slog.Logger, logLevel string) hclog.Logger

NewWithLevel wraps a slog.Logger to a hclog.Logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL