sloghclog

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Transform slog.Logger into hclog.Logger instance

Index

Constants

View Source
const (
	LevelTrace slog.Level = slog.Level(-8)
)

Variables

This section is empty.

Functions

func Adapt

func Adapt(logger *slog.Logger, opts ...adapterOption) hclog.Logger

func AddSource

func AddSource(val bool) adapterOption

func Level

func Level(level slog.Leveler) adapterOption

func Name

func Name(val string) adapterOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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