clhandler

package
v0.0.0-...-fe0dbd3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package clhandler manipulates "github.com/charmbracelet/log" log handlers. It provides a `NewHandlerFrom` function to create a handler from an `io.Writer`, as well as functions to place handlers on, and retrieve them from, the context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsSlogLevel

func AsSlogLevel(level log.Level) slog.Level

func FromContext

func FromContext(ctx context.Context) *log.Logger

func NewContext

func NewContext(ctx context.Context, handler *log.Logger) context.Context

func NewHandlerFrom

func NewHandlerFrom(writer io.Writer) *log.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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