Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogrusMirror ¶ added in v2.10.0
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)
Click to show internal directories.
Click to hide internal directories.