logging

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogrusMirror added in v2.10.0

func AddLogrusMirror(w io.Writer) func()

AddLogrusMirror additionally streams bridged logrus messages (info and above) to the given writer, one line per entry, until the returned function is called. Used to surface an embedded library's log output in the activity feed of the operation that drives it.

func InstallLogrusBridge added in v2.10.0

func InstallLogrusBridge()

InstallLogrusBridge routes the global logrus logger — used by embedded libraries such as Copacetic — through slog so their output follows Arcane's log format instead of logrus' own stderr formatting. Safe to call more than once.

Types

type SlogErrorHandler

type SlogErrorHandler struct{}

SlogErrorHandler reports handled errors through the process slog logger.

func (SlogErrorHandler) Handle

func (SlogErrorHandler) Handle(err error)

func (SlogErrorHandler) HandleContext

func (SlogErrorHandler) HandleContext(ctx context.Context, err error)

Jump to

Keyboard shortcuts

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