text

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package text implements a development-friendly textual handler.

Index

Constants

This section is empty.

Variables

View Source
var Default = New(os.Stderr, Options{})

Default handler outputting to stderr.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implementation.

func New

func New(w io.Writer, opts Options) *Handler

New handler.

func (*Handler) HandleLog

func (h *Handler) HandleLog(e *logg.Entry) error

HandleLog implements logg.Handler.

type Options

type Options struct {
	// Separator is the separator between fields.
	// Default is " ".
	Separator string
}

Options holds options for the text handler.

Jump to

Keyboard shortcuts

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