slog2hclog

package module
v0.0.0-...-5c77f52 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

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, lvar *slog.LevelVar) hclog.Logger

New wraps a slog.Logger to a hclog.Logger. The `SetLevel` method only works when the `lvar` is specified and set to the slog.Logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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