...

Package sloghuman

import "cdr.dev/slog/sloggers/sloghuman"
Overview
Index

Overview ▾

Package sloghuman contains the slogger that writes logs in a human readable format.

func Sink

func Sink(w io.Writer) slog.Sink

Sink creates a slog.Sink that writes logs in a human readable YAML like format to the given writer.

If the writer implements Sync() error then it will be called when syncing.